- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- user is nobody while creating any file or director...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 09:01 PM
08-17-2010 09:01 PM
Getting problem in one of my production server. When I am creating any file or directory in a NFS mounted file system, it's owner is displayed as nobody. But I am a root in local machine.
drwxr-x--- 2 nobody sys 96 Aug 18 01:00 abc
Please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 09:26 PM
08-17-2010 09:26 PM
Re: user is nobody while creating any file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 09:31 PM
08-17-2010 09:31 PM
Re: user is nobody while creating any file or directory
This is known for NFS mount point, if you create any file on NFS mounted fs and as local root access will give you nobdy ownership. if you want to get rid of it except root try to make the same user on the local machine & try to create file & directory. you will get the same ownership for the user.
Regards,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 09:46 PM
08-17-2010 09:46 PM
Re: user is nobody while creating any file or directory
let me elaborate in detail about our setup. we have three production servers and there are 4 NFS mounted file systems on all these 3 servers (all 4 are same on 3 servers). These 4 mount points are exported from a NFS cluster which is having 2 nodes and hanfs is configured in that cluster.
My problem is that, out of 3 servers I can make any file or dir on 2 server's NFS file system but only one server is having this (nobody owner) problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 09:56 PM
08-17-2010 09:56 PM
Re: user is nobody while creating any file or directory
Is that server in the access_list on the NFS server? Does it have the FQDN?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 09:57 PM
08-17-2010 09:57 PM
Re: user is nobody while creating any file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 10:04 PM
08-17-2010 10:04 PM
Re: user is nobody while creating any file or directory
What does nslookup show for the client, on both the server and on the client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 10:10 PM
08-17-2010 10:10 PM
Re: user is nobody while creating any file or directory
Yes, both NFS server & Client is resolving FQDN of each other while nslookup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2010 11:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 12:11 AM
08-18-2010 12:11 AM
Re: user is nobody while creating any file or directory
The server on which the problem exists, is actually the nis master server. But when I give command ypwhich, it is saying
ypwhich
ypwhich:
Now can you please assist for next, what to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 12:33 AM
08-18-2010 12:33 AM
Re: user is nobody while creating any file or directory
/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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 01:33 AM
08-18-2010 01:33 AM
Re: user is nobody while creating any file or directory
Once you try hakkin procedure, then kindly apply the below changes in your export file in NFS server.
/etc/exports
-root=
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 02:12 AM
08-18-2010 02:12 AM
Re: user is nobody while creating any file or directory
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 09:53 AM
08-18-2010 09:53 AM
Re: user is nobody while creating any file or directory
Then look at /etc/xtab to make sure it was exported correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 07:58 PM
08-18-2010 07:58 PM
Re: user is nobody while creating any file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 09:56 PM
08-18-2010 09:56 PM
Re: user is nobody while creating any file or directory
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 11:03 PM
08-18-2010 11:03 PM
Re: user is nobody while creating any file or directory
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 11:29 PM
08-18-2010 11:29 PM
Re: user is nobody while creating any file or directory
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2010 12:11 AM
08-19-2010 12:11 AM
Re: user is nobody while creating any file or directory
checked /etc/nsswitch.conf file.
passwd: files nis entry is there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2010 12:32 AM
08-19-2010 12:32 AM
Re: user is nobody while creating any file or directory
(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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2010 12:57 AM
08-19-2010 12:57 AM
Re: user is nobody while creating any file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2010 01:02 AM
08-19-2010 01:02 AM
Re: user is nobody while creating any file or directory
Your NIS server is running so that apparently your issue does not seem like an NIS issue.
As far as I know, The root users on all other NFS clients are considered â unknownâ to the NFS server, so they are given the access privileges of user nobody.
As curiosity last thing you can check ;
By comparison with other servers, check /etc/publickey files if it is commented out the entry in the file for user nobody ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2010 02:23 AM
08-19-2010 02:23 AM