[sllug-members]: NFS / SAMBA
Knight Walker
kwalker at kobran.org
Sat Aug 26 10:16:19 MDT 2006
On Sat, 2006-08-26 at 00:39 -0600, Adam Barrett wrote:
> I have two linux boxes running in my office. 1 is a server the other a
> workstation.
>
> I want to mount some of the servers folders/files locally for the
> workstation, however I am having problems with the setup. I have
> successfully mounted the directory I want, but the workstation login
> is not allowed to make folders remotely.
Sounds like a permission problem. How are you mounting it, Samba or
NFS?
> I suspect that I will have to setup a shared permissions between the
> server and the workstation.
Not necessarily, but sort of. It depends on if you are using Samba or
NFS.
If you're using NFS, you should be aware that NFS works on UID/GIDs, not
login names, meaning you need to have the same UID for that user account
on both machines for things to make sense. You also may need to
alter /etc/exports to add the "no_root_squash" variable on your exported
directories, or root on the client is not root on the server (Obviously,
this is a potential security hole).
Samba works on the principle of translating Windows security rules to
Linux, meaning that if you login as user "adam" through Samba (And by
this, I mean the "adam" Linux user, not necessarily the "adam" Windows
account, since Samba can do translation between accounts), you should
have all the rights and privs for that user. So if the directory is
writable by "adam" or any of the groups that "adam" is part of, then you
should be able to create directories/files through Samba.
> If so, can someone point me in the right direction, just a online doc
> on it would be very helpful. I just am not sure where to start.
NFS HOWTO: http://tldp.org/HOWTO/NFS-HOWTO/index.html
Samba HOWTO: http://tldp.org/HOWTO/SMB-HOWTO.html
They're not SUSE specific, and they'll have you out on the command line
editing files as root, but they should get you about where you need to
be.
-KW
More information about the sllug-members
mailing list