On Tue, 2006-06-27 at 14:51 +0200, Ariën Huisken wrote:
> Hi list,
>
> Is there a way of forcing the umask of an exported dir on a linux
> server? I have several OSX clients mounting a dir and all files created
> are 644. I want them to be 660.
(sorry, that got sent prematurely)
Not as far as I know -- NFS is not like samba or netatalk, there is no
configuration like that -- the fact that samba and netatalk have that
configuration is a workaround for the fact that umask is impossible to
configure on the client for those protocols (unlike "merely difficult"
with NFS clients)
To set the global umask value to maintain group write permissions on
shared disk space
* Launch /Applications/Utilities/Terminal.app
* Edit /Library/Preferences/.GlobalPreferences.plist (use sudo)
* Add the following two lines to the file, on the first line
following the first <dict> tag:
<key>NSUmask</key>
<integer>2</integer>
I think the umask value in the <integer> tag is a decimal number, not
octal.
umask 0002 makes file creation compatible with RedHat's "user private
groups" setup (which I highly recommend for a shared environment with
group-sticky directories).
> Setting the umask on the client side is a real pain.
Yeah, and so is explaining umask to users. You need to visit every
machine (or login remotely if you can) for the above method, but it's a
one time thing. And then users don't need to know about umask (if
that's a good thing or not is another issue).
--
Andy Bakun <[EMAIL PROTECTED]>
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss