[K12OSN] NIS user authenticated OK but nothing works

Lewis Holcroft lewis at pcc.com
Tue Oct 19 11:46:36 UTC 2004


Is your /var/yp/securenets file setup to allow access to the client 
subnets? Just a guess. I'm new to this NIS stuff and this is the best I 
could come up with pre coffee.


On Oct 19, 2004, at 3:32 AM, Martin Woolley wrote:

> Greetings and Felicitaions
> we have an NIS problem which would appear from googling on various 
> news groups
> that this has been an FAQ.  Shame it isn't a frequently answered 
> question.
> :-)  I know that there a few NIS users in the LTSP community, so 
> perhaps some
> one out there has seen this or a similar problem before.
> We are running FC1, ypserv --version ypse
> v (ypserv) 2.8 ypbind --version ypbind (ypbind-mt) 1.12  I setup NIS 
> and users
> authenicate up to a point (ie they can login) but once they are logged 
> in,
> they cannot access very much.  It would appear that this is because 
> their uid
> is not being translated to a uname.  Here is a short terminal capture 
> session
> (on a yp client) :-
> [I have no name!@bart ahmeo04]$ id
> uid=590 gid=100(users) groups=100(users)
> [I have no name!@bart ahmeo04]$ ypmatch chris group
> chris:x:500:
> [I have no name!@bart ahmeo04]$ ypmatch 590 passwd.byuid
> Can't match key 590 in map passwd.byuid. Reason: Internal NIS error
> [I have no name!@bart ahmeo04]$ yppasswd
> yppasswd: can't find the master ypserver: Internal NIS error
> [I have no name!@bart ahmeo04]$
> Note especially the "I have no name!"; this should display uname. If I 
> am
> logged in as root, the ypmatch command above works fine :-
> [root at bart root]# ypmatch 590 passwd.byuid
> ahmeo04:eq8ubhpZrFqSU:590:100:Ahmed Omar:/home/LISA/ahmeo04:/bin/bash
> [root at bart root]# echo $PS1
> [\u@\h \W]\$
> When I ran ypserv in debug mode, the following messages were displayed 
> in
> response to the ypmatch command above (as the NIS authenticated user) 
> :-
> ypproc_match(): [From:]
>                 domainname = "hgs.nis"
>                 mapname = "passwd.byname"
>                 keydat = "ahmeo04"
> connect from
>         -> Ignored (not a valid source host)
> I have used the makedbm command to dump out the contents of the db 
> files (on
> the server) and can see all of the data as it should be. So in a 
> nutshell,
> only root is to be able to resolve the passwd maps through yp.  No 
> regular
> user has access to them and as a consequence no one can change their 
> password
> or indeed access any application that needs to resolve a uid to a 
> uname. (eg
> open office, abiword, koffice, etc, etc).
> If anyone knows how to mend this, would they please let me know?
> -- 
> Regards
> Martin Woolley
> ICT Support
> Handsworth Grammar School
> Isis Astarte Diana Hecate Demeter Kali Inanna
> *************************************************************
> This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity
> to whom they are addressed. If you have received this email
> in error please notify postmaster at bgfl.org
> The views expressed within this email are those of the
> individual, and not necessarily those of the organisation
> *************************************************************
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>

More information about the K12OSN mailing list