NFS "nobody:nobody" problems

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat NFS "nobody:nobody" problems
# 1  
Old 01-26-2011
NFS "nobody:nobody" problems

Hello all,

I have looked through the forums and I have seen people with this same issue, but none of the fixes have worked for me.

The NFSv4 server is running on Solaris 10. The clients are RHEL 5.4
I am using the NFS server as a high availability storage place for some MQv7 files.

Info prevalent to the problem from other posts:
1. NFSMAPID_DOMAIN is commented out because the resolv.conf files on the client and server do not have the same domain.
2. /etc/dfs/dfstab has "share -F nfs -o rw /export/home/MQHA"
3. I need the mount to be mounted as "mqm:mqm" as that is the user on the client side that must have access to the files for the HA to work. Therefore, I have tried "-o rw=mqm", but when I try to mount it, I get a permission denied response. Trying to mount as the mqm user results in "only root can do that."
4. Both the mqm uid and mqm guid are the same across all 3 servers


I hope I covered everything. The mount command I am using is:
mount -t nfs4 -o hard,intr xx.x.xx.xx:/export/home/MQHA /MQHA

Thanks for any help.
# 2  
Old 01-27-2011
Hi,

Couple of points, as your post alludes to a bit of confusion.

1) The function "-o rw=" is to export r/w to hosts, not to users.

2) Only root can mount an NFS filesystem - this is true. It sounds like all you want is ownership for the mqm user/group over the newly-mounted filesystem. Once you've mounted the filesystem as root, chown mqm:mqm on the mountpoint and this should be what you're looking for (you only need to do the chown once, not every time you mount).

3) Have I misunderstood your problem, and the filesystem is mounted as nobody:nobody?
# 3  
Old 01-27-2011
Here is what is shown:


drwxr-xr-x 25 root root 4096 Jan 14 16:32 .
drwxr-xr-x 25 root root 4096 Jan 14 16:32 ..
-rw-r--r-- 1 root root 0 Jan 14 11:57 .autofsck
-rw-r--r-- 1 root root 0 Feb 23 2010 .autorelabel
drwxr-xr-x 2 root root 4096 Jan 17 15:53 bin
drwxr-xr-x 4 root root 1024 Feb 23 2010 boot
drwxr-xr-x 10 root root 3660 Jan 14 11:57 dev
drwxr-xr-x 101 root root 12288 Jan 27 09:34 etc
drwxr-xr-x 4 root root 4096 Jan 14 14:37 home
drwxr-xr-x 13 root root 4096 Jan 14 13:05 lib
drwx------ 2 root root 16384 Feb 23 2010 lost+found
drwxr-xr-x 2 root root 4096 Jan 14 11:57 media
drwxr-xr-x 2 root root 0 Jan 14 11:57 misc
drwxr-xr-x 2 root root 4096 Aug 8 2008 mnt
drwxrwxr-x 7 nobody nobody 1536 Jan 25 14:46 MQHA
drwxr-xr-x 2 root root 0 Jan 14 11:57 net
drwxr-xr-x 3 root root 4096 Jan 17 15:44 opt
dr-xr-xr-x 112 root root 0 Jan 14 11:56 proc
drwxr-x--- 15 root root 4096 Jan 14 11:55 root
drwxr-xr-x 2 root root 12288 Jan 14 13:08 sbin
drwxr-xr-x 2 root root 4096 Feb 23 2010 selinux
drwxr-xr-x 2 root root 4096 Aug 8 2008 srv
drwxr-xr-x 11 root root 0 Jan 14 11:56 sys
drwxr-xr-x 3 root root 4096 May 19 2009 tftpboot
drwxrwxrwt 5 root root 4096 Jan 27 04:02 tmp
drwxr-xr-x 14 root root 4096 Feb 23 2010 usr
drwxr-xr-x 23 root root 4096 Jan 17 15:44 var
[root@MQfailover /]# chown mqm:mqm MQHA
chown: changing ownership of `MQHA': Invalid argument


the line that is bolded is the mount. at the bottom is the output of the chown attempt.
# 4  
Old 01-27-2011
On the server, can you post the the output of the 'share' command / or the relevant line in /etc/dfs/dfstab.

It would be handy to know how this is exported.

The problem is basically, root uid is "squashed" to nobody, so it looks like the /export/home/MQHA dir is owned by root on the NFS server. The answer would be to chown mqm on the export on the *server*.
# 5  
Old 01-27-2011
the share command outputs:

/export/home/MQHA rw " "

the /etc/dfs/dfstab has:

share -F nfs -o rw /export/home/MQHA

the folder MQHA in /export/home has 775 permissions and mqm:mqm

The folder on the client side, /MQHA, has 775 permissions and is also owned by mqm:mqm

Thanks for the help
# 6  
Old 02-09-2011
I installed a patch for RHEL that is know to potentially cause this problem with the nfs, but it unfortunately did not fix the issue.

Does anyone else have any ideas?

these are the nfs packages that are installed:
rpm -qa | grep nfs
nfs-utils-1.0.9-42.el5
nfs-utils-lib-1.0.8-7.6.el5
nfs-utils-lib-devel-1.0.8-7.6.el5

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

4. SCO

NFS umount shows the "Device busy (Error 16)"

Hi there After making a backup copy of it sometimes happens that when I want to unmount an NFS indicates the error:umount: /path_mount busy: Device busy (Error 16) if I run lsoff, I can not find the process that is blocking the application. I'm using OpenServer 5.0.2c as one NFS server ... (14 Replies)
Discussion started by: flako
14 Replies

5. Shell Programming and Scripting

Problems with "write" and "wall"

Hello, I am using VirtualBox to simulate a small network with two Linux computers, the host is Mac OS X. My problem is that I can't send "write" and "wall" messages from the host to one of those Linux computers. Here is what works: - The virtual Linux computer answers "ping" messages that have... (5 Replies)
Discussion started by: 123_abc
5 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. Red Hat

"ERROR : failed to mount nfs source" Red Hat Kickstart

Hi There, I have been googling for this error and try solution provided but still not avail to resolve Kickstart Issue. Any expert have encounter this problem? Thanks. Regards, Regmaster (4 Replies)
Discussion started by: regmaster
4 Replies

8. UNIX for Advanced & Expert Users

strange "No such file or directory" errors on NFS volumes

we're seeing very strange "No such file or directory" errors on NFS volumes on one of our suse servers - can anyone please help? we're seeing it for both our NetApp NAS Device and one of our Solaris NFS servers too Here is what we're seeing: stg-backup:~ # cd /rmt/sge stg-backup:/rmt/sge... (3 Replies)
Discussion started by: fishsponge
3 Replies

9. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Login or Register to Ask a Question