Operating System - HP-UX
1826647 Members
3108 Online
109695 Solutions
New Discussion

Re: mkdir on nfs filesystem not setting the group writable permissions bit

 
Scott Hewes
Advisor

mkdir on nfs filesystem not setting the group writable permissions bit

Does anybody know why the group writable permission bit is not set when using mkdir to create a directory on an NFS filesystem? I have my umask set to 002. Also, the parent directory has group writable permissions set on both the NFS client and NFS server.
7 REPLIES 7
Ramkumar Devanathan
Honored Contributor

Re: mkdir on nfs filesystem not setting the group writable permissions bit

Wonder why I am not getting the same problem. My directories get created on the mounts, exactly based on my umask settings.

- ramd.
HPE Software Rocks!
Scott Hewes
Advisor

Re: mkdir on nfs filesystem not setting the group writable permissions bit

Are creating the directory on an NFS filesystem?
Ramkumar Devanathan
Honored Contributor

Re: mkdir on nfs filesystem not setting the group writable permissions bit

hi,
see this -

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

# mount | grep mig
/mig on mig:/tmp rsize=32768,wsize=32768,NFSv3 on Fri Apr 4 23:34:41 2003
# cd /mig
# ls -ld .
drwxrwxrwx 19 bin bin 4096 Apr 19 03:02 .
# umask
00
# mkdir test
mkdir: cannot create test: File exists
# rmdir test;mkdir test
# ls -ld test
drwxrwxrwx 2 nobody nogroup 96 Apr 19 03:05 test
# rmdir test
# umask 002
# mkdir test
# ls -ld test
drwxrwxr-x 2 nobody nogroup 96 Apr 19 03:05 test
# rmdir test
# umask 022
# mkdir test; ls -ld test
drwxr-xr-x 2 nobody nogroup 96 Apr 19 03:05 test
# rmdir test
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

- ramd.
HPE Software Rocks!
Scott Hewes
Advisor

Re: mkdir on nfs filesystem not setting the group writable permissions bit

May I ask how you configured your NFS server and NFS client? I am still having this problem. Also, a user other than "nobody" owns the mount point directory and all file and directories there under.
Ramkumar Devanathan
Honored Contributor

Re: mkdir on nfs filesystem not setting the group writable permissions bit

Scott,

here is /etc/exports on my nfs server -

# cat /etc/exports
/tmp -rw=scud

Here is the mount command that i'd run to mount this on my nfs client -

# mount mig:/tmp /mig

What other config details would you require?

- ramd.
HPE Software Rocks!
Scott Hewes
Advisor

Re: mkdir on nfs filesystem not setting the group writable permissions bit

I believe I may have found the solution to this problem. The NFS server is actually a Consensys Radizone disk array that is running Linux kernel 2.4.6-3smp. Version 2.4.16-7smp of the linux kernel may fix this problem. I have second Raidzone that has version 2.4.16-7smp installed and I do not have this problem with NFS mounts to that server.

My apologies for not making it clear that the NFS server is a Linux box....
Scott Hewes
Advisor

Re: mkdir on nfs filesystem not setting the group writable permissions bit

FYI...

The update of the linux kernel to 2.4.16-7smp solved the problem....