Hey all,

I’m a bit of a Linux noob so I’m having some trouble with one of my newest tasks. I created a volume on a Netapp filer using NFS4. Then from there I change ownership on a Solaris server using UID:GID that the users want.

I have to do the chown/chmod on the Solaris due to root squash, and their production server is RHEL.

On my solaris mount point when I do ls -la /mountfolder It shows up with the correct permissions and shows the user owning it. Then going to the mount point on the production RHEL server, it shows up as nobody owning it.

Does anyone have any ideas on what to look at? I’ve looked at the /etc/passwd file and tried with ownership to the numericals instead of the letters and no luck.

2 Spice ups

Either manually when you run your mount command using mount -o or in your /etc/fstab file you need to set the uid=# and/or gid=###

for who you want the mounted directory/subdirectories to be owned by.

the uid/gid=## should be the numerical values on your local system where you are modifying the mount command or fstab file.

Might be obsolete for this now …

but ideally on all server you should have the same uid gid for the same users. (if they are under LDAP or AD then you should be sorted automatically). The Netapp should then be under LDAP or AD as well and you can then configure on the netapp to have the same user permissions on all servers.

I would avoid having to mess with different uid or gid between servers cause this might cause issues on a long term when sub-folders are changed with different user permissions.

Also to add on top for a more precise reason in case some one else runs across this. NFSv4 doesn’t like to work with some linux flavors during mounting. Had to be done with -o vers=3.