Network and Storage Protocols

nfs permission - some questions

WERNBACHER
4,740 Views

Hy Guys!

I've a question in relation to Netapp and NFS shares!

1.) how can i manage the permissions for a nfs share?

so i've this nfs shares:

Volume           Tree            NFS ops         CIFS ops

--------         --------        -------         --------

nfstest               lock                828               0

nfstest               custloads            46               0

nfstest               templates           261               0

nfstest               storage              70               0

and i'll manage the permissions for the nfstest share to change from 770 to 777 and so on...

please discribe me in simple steps!

thx very much

10 REPLIES 10

aborzenkov
4,722 Views

You mount it on Unix server and change permissions from there. Make sure to allow root on this server (option root=IP-or-name when exporting) so you can change permissions of any file/directory.

WERNBACHER
4,722 Views

thx for your answer but the problem is that the directories always have the owner-name "nobody" and "nogroup" and the takeover from the ownership to root fails!

aborzenkov
4,722 Views

Are you using NFSv4?

WERNBACHER
4,722 Views

how can i check the version of nfs?

aborzenkov
4,722 Views

which OS?

WERNBACHER
4,722 Views

8.0.2

aborzenkov
4,722 Views

Sorry, I mean - which OS is used on client?

OK, probably faster if you check on NetApp whether option nfs.v4.enable is set or not.

WERNBACHER
4,722 Views

ah ok... i use debian 5.0 lenny

aborzenkov
3,902 Views

Well. check if NFSv4 is enabled on filer. If it is - check mount options on client (file /proc/sekf/mounts wil show all mounted filesystems with options).

jcascanette
4,722 Views

Are you using LDAP for user authentication or are you using local IDs on the NAS?

If local NAS authentication then your passwd and group files (etc\) need to have the same information as from the server mounting. So what ever they have on the server in the passwd and group files you need to have on the NAS passwd and group files. UID and GID have to match. Be careful that the syntax on the NAS group file is abit different from the server has listed. Once the passwd and group files are in sync then your nobody ownership issue will go away.

Also if you are not using NFSv4 then disable it. 🙂

Joe

Public