Operating System - HP-UX
1753747 Members
5019 Online
108799 Solutions
New Discussion юеВ

Re: user is nobody while creating any file or directory

 
SOLVED
Go to solution
Hakki Aydin Ucar
Honored Contributor

Re: user is nobody while creating any file or directory

- compare the configuration if other servers are different in file;
/etc/nsswitch.conf

- I found this link check it;
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=5898

- You can try these commands;
/sbin/init.d/nis.server start
/sbin/init.d/nis.client start

HP-UX_Ali
Regular Advisor

Re: user is nobody while creating any file or directory

Hello Shyam,

Once you try hakkin procedure, then kindly apply the below changes in your export file in NFS server.

/etc/exports
-root= ,anon=0 access=

Re-export the fs
exportfs

try to create the file or directory using root in client side & confirm. does it work or not.

Thanks

Regards
Ali



shyam sunder_2
Advisor

Re: user is nobody while creating any file or directory

Ali,

as I described earlier that NFS server is in cluster and these NFS file systems are exported through hanfs configuaration in cluster. So there is no /etc/exports file in NFS server. The file systems automatically exported while starting the package of the cluster.

Dennis Handly
Acclaimed Contributor

Re: user is nobody while creating any file or directory

>So there is no /etc/exports file in NFS server.

Then look at /etc/xtab to make sure it was exported correctly.
shyam sunder_2
Advisor

Re: user is nobody while creating any file or directory

on nfs server checked /etc/xtab file. it has no problem, all mount points are exported correctly.
Elmar P. Kolkman
Honored Contributor

Re: user is nobody while creating any file or directory

Please check the 'showmount -a' output on the NFS server for the specific client.

Even though you checked a lot, the NFS server is still not seeing the client as the client it should see... resulting in the 'nobody' problem.

Also, after changing settings, re-mount the filesystem on the client. Or, for testing, mount it again at a different location for the test and after seeing your problem is solved or not unmount it again.
Every problem has at least one solution. Only some solutions are harder to find.
shyam sunder_2
Advisor

Re: user is nobody while creating any file or directory

Hi Elmar,

showmount -a is giving correct output for this problematic nfs client. Also I have checked unmounting & remounting these nfs file systems on the client, but still same problem.
Hakki Aydin Ucar
Honored Contributor

Re: user is nobody while creating any file or directory

Hi,
are you able to restart nis server now ?

when you issue the command (rpcinfo command is used for troubleshooting purposes);
# rpcinfo -s

can you see ypbind and others ypxxxx processes to be sure NIS server processes are present ?

last, you can check the file /etc/nsswitch.conf consist of this line:
passwd: files nis
shyam sunder_2
Advisor

Re: user is nobody while creating any file or directory

Yes Hakki, I am able to restart nis server. Also checked rpcinfo -s , it is showing that ypbind and other ypxxxx processes are running.

checked /etc/nsswitch.conf file.
passwd: files nis entry is there.
Elmar P. Kolkman
Honored Contributor

Re: user is nobody while creating any file or directory

Are all NFS client processes running on the NFS client ?
(You can mount NFS without all processes running...)
And for this you don't need NIS. NIS is only needed when you are trying to use things like NFS v4 AND use users other then the local users. Your problem is with the root account, which shouldn't be in NIS anyway.
Every problem has at least one solution. Only some solutions are harder to find.