Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-08-2013, 03:40 AM   #1
Registered: Dec 2006
Location: Russia,52
Posts: 125

Rep: Reputation: 6
Question Can't mount nfs share using umask

I want to mount NFS shared folder:

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

Without umask mount ok. Is umask is prohibited for nfs?
Old 02-08-2013, 06:50 AM   #2
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244 .... umask is listed under the filesystem-specific sections.
Old 02-11-2013, 01:20 AM   #3
Registered: Dec 2006
Location: Russia,52
Posts: 125

Original Poster
Rep: Reputation: 6
Originally Posted by linosaurusroot View Post .... 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
Old 02-11-2013, 02:32 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
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.


nfs, umask

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
How can I mount a NFS share that have a SMB share mounted? perezyanez Linux - Networking 2 09-26-2008 10:03 AM
Can't mount nfs share from fstab but can mount it manually - help Mountain Linux - Networking 1 03-30-2008 09:34 PM
Cannot Mount NFS Share Ingla Linux - Server 3 08-02-2007 09:29 PM
mount with uid and umask via NFS grendel-IT Linux - Networking 1 08-06-2004 12:57 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration