Solved

NFS file permissions for new files

Posted on 2008-10-28
6
434 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
ID: 22827120
Hi,
did you consider using umask ?
wmp
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22827195
... or let your Linux clients do smbmount ?
0
 
LVL 3

Author Comment

by:coanda
ID: 22827298
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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 22829276
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
ID: 22832769
To ~/.bashrc I added:
  umask 002
to bring the default permissions from 666 to 664.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22833063
Any reason for grade B?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Replace File Server 12 36
HP Virtual Connect firmware upgrade ? 5 121
Take control over Windows Time Syncronisation 6 87
ON RDS SERVER 2012 CREATING A C DRIVE FOR EACH USER 3 118
Goal:  To set up a secure SSH server for your home computer to make it accessible anywhere AND to use it as a port forwarding proxy. Steps 1.  WinSSHD version 5 is free for personal use.  So download and install it.  You can download it from the…
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 …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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