Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

permissions on an NFS mounted filesystem 1

Status
Not open for further replies.

carolanne

MIS
Aug 5, 2000
5
US
I have a user who is unable to write to a directory in a mounted filesystem.
He is in same group as the directory owner and the permissions are 775. The mountpoint directory is 777

He is able to write to the directory on the server on which the filesystem resides, but he is unable to write to it when on the remote server.

The filesystem has been exported and mounted wide-opened.
Other users who appear to be set up identically are able to write to the directory.

There is no /etc/logingroup present on this server and we are using NIS for group and netgroup.

I have read man pages until I'm crossedeyed.
I know it is some small detail that I'm missing, but I just can't figure it out.

Any ideas?

Thanks for the help
Carol Anne
 
Hi,

Have you checked the uid of the user?. When you access to a file system by NFS you obtain the permissions of the user that has the same uid as you in the remote server. For example
Server A Server B
userA uid=15 userA uid=20
userB uid=30 userB uid=15

If you mount a file system from B to A and you try to access as userA you aren´t really userA who you really are for the file system is userB. I don´t think this is the problem as the file system is 777 and mounted rw but I´d check it. You aren´t talkink about root user, are you?. Because the root user is special for NFS and should be treated in a different way as the other users. Are the two system HP-UX?

Best regards.
 
We use NIS, so he has the same uid on both systems. I also checked the local /etc/passwd to make sure that there was no entry in there with the same uid.

Recently, he was added to some additional groups and he is claiming that it was right after that that he lost the ability to write to the mounted filesystems.
I checked and made sure that there was no mistake in the netgroup file.

Is there a limit to how many groups a user can be a member of?


 
Thanks for the help.

I discovered what the problem is.
A user can only be a member of 16 groups. This user was a member of 20. It did not take the last four groups even though they were listed by the groups command.
After removing him from 4 groups that he no longer needed, everything works fine.

Thanks again!
 
Hi. Can you tell me where you found the information about the 16 group limit? I looked at the group.4 manpage with no luck. (It implied that you could have 222 groups in a list!)
 
I found the information on the HP site


Below is part of the text:

December 18, 2001 18:53 PM GMT [ unassigned ]

--------------------------------------------------------------------------------
Just a short add-on note:
NFS only allows a client user to be a member of 16 groups on HP-UX.
 
I hav mounted a NFS volume on a HPUX but when i try to unmount the same i
am getting the following error.
*******output of the command*********
#umount /bcp
umount: /cdrom: Block device required
**************************************

/bcp is the dir wer i am mounting the NFS volume.

This is a HPUX 11 system. There is nothing in the cdrom and it is not
mounted. I dont know why the CDROM comes in to picture when i try to unmount
a different filesystem .Below is /etc/mnttab entry..

Is there any clue...

/dev/vg00/lvol3 / vxfs log 0 1 1011586739
/dev/vg00/lvol1 /stand hfs defaults 0 0 1011586740
/dev/vg00/lvol8 /var vxfs delaylog,nodatainlog 0 0 1011586756
/dev/vg00/lvol7 /usr vxfs delaylog,nodatainlog 0 0 1011586757
/dev/vg00/lvol4 /tmp vxfs delaylog,nodatainlog 0 0 1011586757
/dev/oravg01/oradata2 /oradata2 vxfs delaylog,nodatainlog,largefiles 0 0
1011586757
/dev/appvg/oradata /oradata vxfs delaylog,nodatainlog,largefiles 0 0
1011586757
/dev/vg00/lvol6 /opt vxfs delaylog,nodatainlog 0 0 1011586758
/dev/vg00/lvol5 /home vxfs delaylog,nodatainlog 0 0 1011586758
/dev/appvg/app /app vxfs delaylog,nodatainlog,nolargefiles 0 0 1011586758
aswuxg1:(pid9178) /net ignore ro,intr,port=873,map=-hosts,indirect,dev=0000
0 0 1014185505
10.32.22.140:/hpux /bcp nfs defaults,NFSv3 0 0 1014189324

Any info wud be highly appreciated..

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top