Solved

NFS file permissions for new files

Posted on 2008-10-28
6
427 Views
Last Modified: 2013-12-02
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.
0
Comment
Question by:coanda
  • 4
  • 2
6 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Hi,
did you consider using umask ?
wmp
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
... or let your Linux clients do smbmount ?
0
 
LVL 3

Author Comment

by:coanda
Comment Utility
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.
0
Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
You should modify the user's profiles on the client side. Which file to modify depends on the shell used, in ksh it's e.g. ~ /.profile , in csh e.g. ~/..cshrc and ~/.login,  in bash e.g. ~/.bashrc, ~/.profile, ~/.bash_login or ~/.bash_profile.
The 'env' method works as well.
Of course you could change the umask globally in /etc/profile.
I wouldn't recommend that.
 
0
 
LVL 3

Author Comment

by:coanda
Comment Utility
To ~/.bashrc I added:
  umask 002
to bring the default permissions from 666 to 664.
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Any reason for grade B?
0

Featured Post

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Join & Write a Comment

Have you ever stumbled upon a software that is so great that you just love? It happened to me. Love at first sight. Filezilla Server.   Ok its not the most advanced ftp server I've came across. But its a fairly simple piece of software to get the …
Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now