LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't mount nfs share using umask (http://www.linuxquestions.org/questions/linux-software-2/can%27t-mount-nfs-share-using-umask-4175449127/)

sluge 02-08-2013 03:40 AM

Can't mount nfs share using umask
 
I want to mount NFS shared folder:

# mount -t nfs 192.168.1.1:/export /mnt/export -o umask=111
mount.nfs: an incorrect mount option was specified

Without umask mount ok. Is umask is prohibited for nfs?

linosaurusroot 02-08-2013 06:50 AM

http://unixhelp.ed.ac.uk/CGI/man-cgi?mount+8 .... umask is listed under the filesystem-specific sections.

sluge 02-11-2013 01:20 AM

Quote:

Originally Posted by linosaurusroot (Post 4886921)
http://unixhelp.ed.ac.uk/CGI/man-cgi?mount+8 .... umask is listed under the filesystem-specific sections.

from man page:
Mount options for hfs

dir_umask=n, file_umask=n, umask=n
Set the umask used for all directories, all regular files, or
all files and directories. Defaults to the umask of the current
process.

jschiwal 02-11-2013 02:32 AM

hfs is a different network file system than nfs. You could create a bind mount on the server with different mount options than the original. For NFS4 you should do this anyway so all exports are subdirectories of the NFS root with the fsid=0 option.


All times are GMT -5. The time now is 12:18 AM.