LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba: mount-folder in client gives only root permissions (https://www.linuxquestions.org/questions/linux-newbie-8/samba-mount-folder-in-client-gives-only-root-permissions-363690/)

mvo 09-15-2005 03:01 PM

samba: mount-folder in client gives only root permissions after mounting
 
Hello!

I use samba as a fileserver, but with my Linux clients I have a permission problem:
The files in the server have 777 and also in the client they show 777-permissions and I want 777 (or at least 774/775), but I cannot change them because the mount-folder changes in 755 as soon as I mount while before mounting the mount folder had 777.... :confused:

I mount with the cmd (as root):
mount -t smbfs //192.168.3.2/share /home/marcel/share -o username=marcel

my smb.conf is:
[global]
workgroup = test
netbios name = SAMBASERVIDOR
server string = My Lil Linux Box
hosts allow = 192.168. 127.
log file = /var/log/samba/%m.log
log level = 2
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
lock directory = /usr/local/samba/var/locks
os level = 64

[homes]
comment = home
browseable = no
writeable = yes
create mask = 0777
directory mask = 0777

[share]
path = /home/share
browseable = yes
writeable = yes
create mask = 0777
directory mask = 0777
locking = yes
public=yes


Can anyone help me out on this one??

Thanks!!

fedoen 09-16-2005 10:05 AM

Re: samba: mount-folder in client gives only root permissions after mounting
 
If your folder share belongs to root try changing the owner of the folder to marcel

mvo 09-16-2005 10:15 AM

yes, I already tried that one, but whatever owner i give the folder in the server, as soon as i mount (mount -t smbfs //192.168.3.2/share /home/marcel/share -o username=marcel in the terminal ) on a client the owner and group is set to root...
anyone?

spade78 09-16-2005 11:39 AM

Try to specify the uid and gid options which will set ownership when you mount the shares. So instead of this:
mount -t smbfs //192.168.3.2/share /home/marcel/share -o username=marcel

Try this:
mount -t smbfs //192.168.3.2/share /home/marcel/share -o username=marcel,uid=linuxUserName,gid=linuxGroupName


All times are GMT -5. The time now is 03:29 AM.