sudama
asked on
How to make an NFS export always read-write for all users?
Here's the situation:
We have a directory on our Linux server that we use to share files among our employees. Let's call this /home/shared for example. We share this directory via samba and NFS so that all our Windows, Mac, and Linux users may access it equally.
A problem we are running into is that our Mac-using webmaster will put a file in there via NFS, but the permissions are set such that the Windows-using webmaster cannot open the file. How do we set up our exports file so that ALL files created in that directory are set with read-write permissions for all?
Here are excerpts from our current smb.conf and /etc/exports:
<smb snip>
[shared]
comment = Server Shared Files
path = /home/shared
writeable = yes
browsable = yes
public = yes
create mode = 0777
directory mode = 0777
guest ok = yes
guest account = nobody
</snip>
this is /etc/exports:
/home/shared 192.168.1.0/255.255.255.0( rw,insecur e,sync)
/home 192.168.1.0/255.255.255.0( rw,root_sq uash,async )
We have a directory on our Linux server that we use to share files among our employees. Let's call this /home/shared for example. We share this directory via samba and NFS so that all our Windows, Mac, and Linux users may access it equally.
A problem we are running into is that our Mac-using webmaster will put a file in there via NFS, but the permissions are set such that the Windows-using webmaster cannot open the file. How do we set up our exports file so that ALL files created in that directory are set with read-write permissions for all?
Here are excerpts from our current smb.conf and /etc/exports:
<smb snip>
[shared]
comment = Server Shared Files
path = /home/shared
writeable = yes
browsable = yes
public = yes
create mode = 0777
directory mode = 0777
guest ok = yes
guest account = nobody
</snip>
this is /etc/exports:
/home/shared 192.168.1.0/255.255.255.0(
/home 192.168.1.0/255.255.255.0(
beside chmod g+s , what umask does your Mac use?
> put a file in there via NFS, but the permissions are set such that the Windows-using webmaster cannot open the file.
put
umask 000
in /etc/bashrc and /etc/csh.cshrc (system-wide) or in your .bashrc (.profile, .login, or .cshrc)
So the file create in Mac will be readable/writeabke for everyone.
put
umask 000
in /etc/bashrc and /etc/csh.cshrc (system-wide) or in your .bashrc (.profile, .login, or .cshrc)
So the file create in Mac will be readable/writeabke for everyone.
I would instead check the umask for the user, since changing it system-wide would probably affect many other programs...
so we wait for the answer to http:#13802136 ;-)
ASKER
Maybe I was not being clear.
Files created by the Mac user in the NFS share on my Linux server are set at permissions of 644, with username adoss and groupname adoss.
I want the files that she creates in the nfs share to be read-write for all.
We don't want all the files she creates on her own computer to be read-write for all.
How exactly is this accomplished?
Files created by the Mac user in the NFS share on my Linux server are set at permissions of 644, with username adoss and groupname adoss.
I want the files that she creates in the nfs share to be read-write for all.
We don't want all the files she creates on her own computer to be read-write for all.
How exactly is this accomplished?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you should grant rights for the group to write, and maybe add this also:
chgroup nogroup /home/shared
chmod g+s /home/shared