Link to home
Start Free TrialLog in
Avatar of coanda
coanda

asked on

NFS file permissions for new files

I have a file server that shares with Windows clients via SMB and Linux clients via NFS. When a Windows user creates a new file on the share it uses group/user permissions for new files that are set in the smb.conf file, when a Linux/NFS client creates a new file it is given a different set of permissions. Is there any way to set what group/user permissions are used for NFS in a similar way as is done with Samba?

My NFS shares are exported using:

/mnt/share 192.168.1.0/24(rw,no_root_squash,subtree_check)

All users and groups for Windows and Linux come from an Active Directory.
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Hi,
did you consider using umask ?
wmp
... or let your Linux clients do smbmount ?
Avatar of coanda
coanda

ASKER

I figured that I'd have to add a mask somewhere, the question should probably have been worded more like "what configuration (file) do I add a mask to?"

And no, I prefer to use NFS for Linux clients.
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of coanda

ASKER

To ~/.bashrc I added:
  umask 002
to bring the default permissions from 666 to 664.
Any reason for grade B?