Results 1 to 2 of 2
I have an Ubuntu Server where I have a couple of folders I'm trying to share on the network using Samba. The folders are visible on my Ubuntu desktop machine, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-11-2013 #1
- Join Date
- Jun 2006
Problems with permission settings on Samba share
- Guest user must be able to access the share with read only rights.
- Authorized users (kikkmikk and kristin) must be able to access the share with full write rights.
This is the relevant output of /etc/samba/smb.conf for one of the share folders
path = /home/kikkmikk/filmer force user = kikkmikk force group = kikkmikk write list = kristin kikkmikk create mask = 0664 directory mask = 0775 guest ok = Yes
//192.168.19.190/filmer /home/filer/felles/jiji/filmer cifs iocharset=utf8,credentials=/root/.smbcredentials,file_mode=0660,dir_mode=0770 0 0
The files and folders have the following permissions and owner/group on the server:
drwxrwxr-x 8 kikkmikk kikkmikk 4096 sep. 22 2011 Family Guy -rw-rw-r-- 1 kikkmikk kikkmikk 161716224 des. 30 2010 101 - Death Has A Shadow.avi
After changing the settings in /etc/fstab I rund sudo mount -a to remount it, and after changing settings in the smb.conf file on the server I run service smbd restart.
- 12-11-2013 #2
- Join Date
- Jun 2006
I manged to solve this after some investigation. The error was due to three closely related issues.
First of all I had only created the kikkmikk user on the server, not on the client:
sudo useradd kikkmikk
Secondly, I had to add the uid and gid to /etc/fstab (use id -u <user> and id -g <group> to list them):
//192.168.19.190/filmer /home/filer/felles/jiji/filmer cifs iocharset=utf8,credentials=/root/.smbcredentials,uid=1002,gid=1002,file_mode=0664,dir_mode=0775 0 0
Also I changed the smb.conf settings a bit:
[filmer] path = /home/kikkmikk/filmer read only = Yes guest ok = No browseable = Yes create mask = 0664 directory mask = 0775 write list = @kikkmikk force user = kikkmikk force group = kikkmikk
sudo service smbd reload sudo service nmbd reload
sudo umount /path/to/mountpoint sudo mount -a
Hope this helps someone else.