Networking Forums

Networking Forums > Computer Networking > Linux Networking > user can't ypcat passwd, but root can

Reply
Thread Tools Display Modes

user can't ypcat passwd, but root can

 
 
ssmethurst@tiscali.co.uk
Guest
Posts: n/a

 
      10-02-2006, 12:12 AM
Hi group. first posting to here, so I appologise if this is old news.
It looks like I have a permissions problem that is stopping services not
run as root from seeing a correct value of $USER. Two machines,
'client' & 'server', similar setups apart from one has a full
/etc/passwd from which yp makes maps, and the other has only a skeleton.
This problem has run me ragged. I am sure that I have checked out
everything, and now I hope that someone can show me that I haven't.
Sorry for the mass of detail, but I think it is all relevant.

login on the client as a user not in its skeleton /etc/passwd looks like
this...

[I have no name!@client ~]$ whoami
whoami: cannot find username for UID 501

root@client executes 'ypcat passwd' and sees the full map
root@client executed 'ypcat hosts' and seen the full map
root@server executes 'ypcat passwd' and sees the full map
root@server executed 'ypcat hosts' and seen the full map

user@client executes 'ypcat passwd' and sees 'No such map passwd.byname.
Reason: No such map in server's domain'
user@client executed 'ypcat hosts' and seen the full map
user@server executes 'ypcat passwd' and sees 'No such map passwd.byname.
Reason: No such map in server's domain'
user@server executed 'ypcat hosts' and seen the full map

I am running FC4 ypserv 2.13, ypbind 1.17.2. /var/yp/domain has all the
expected maps portmap, rpc.statd, rpc.idmapd, ypserv, ypbind,
rpc.yppasswdd, rpc.rquotad, nfsd, rpc.mountd are reported by ps as running.

On the client executing 'rpcinfo -p server' reports
portmapper tcp & udp port 111
status tcp & udp port 32768
ypserv 2xudp port 883
& 2xtcp port 886
ypbind 2xudp port 893
& 2xtcp port 896
yppasswdd udp port 759
rquotad 2xudp port 737
& 2xtcp port 752
nfs 3xudp & 3xtcp all on port 2049
nlockmgr 3xudp port 32770
3xtcp port 32795
mountd 3xudp port 771
& 3xtcp port 783

On the client executing 'rpcinfo -p' reports
portmapper tcp & udp port 111
status tcp & udp port 32768
ypbind 2xudp port 648
& 2xtcp port 651
nlockmgr 3xudp port 32769
3xtcp port 32795

/etc/nsswitch.conf on server contains ...
passwd: files nis
shadow: files nis
group: files nis
hosts: files nis dns
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files nis
rpc: files
services: files nis
netgroup: files nis
publickey: nisplus
automount: files nis
aliases: files nisplus

/etc/nsswitch.conf on clinet contains ...
passwd: nis files
shadow: nis files
group: nis files
hosts: files nis dns
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files nis
rpc: files
services: files nis
netgroup: files nis
publickey: nisplus
automount: files nis
aliases: files nisplus

/var/yp/Makefile contains
NOPUSH=true
MINUID=500
MINGID=500
NFSNOBODYUID=65534
NFSNOBODYGID=65534
MERGE_PASSWD=true
all: passwd group hosts rpc services netid protocols mail (no more)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User "home" mapping to root of share C. Newell Windows Networking 2 02-09-2009 06:00 PM
standard xp user cant create file on C root Scott Windows Networking 1 02-15-2007 04:48 PM
Delete user account from passwd and NIS kevindu28@yahoo.com Linux Networking 5 08-09-2005 12:11 PM
Postfix config - cron messages for root going to root@ISP. Doug Laidlaw Linux Networking 5 02-27-2005 03:21 PM
root user can't access internet Nick Knight Linux Networking 3 04-18-2004 07:14 PM



1 2 3 4 5 6 7 8 9 10 11