LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



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

Rep: Reputation: 6
Question 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?
 
Old 02-08-2013, 06:50 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 870
Blog Entries: 2

Rep: Reputation: 219Reputation: 219Reputation: 219
http://unixhelp.ed.ac.uk/CGI/man-cgi?mount+8 .... umask is listed under the filesystem-specific sections.
 
Old 02-11-2013, 01:20 AM   #3
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 104

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

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


Reply

Tags
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


All times are GMT -5. The time now is 08:27 AM.

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