in my LAN server I have samba to share in LAN the files.
All folders/sharings created until yesterday are working correctly. Today I created a new folder in my filesystem and a new sharing in samba:
Code: Select all
root@myserver:/srv/folders# ls -ahl
drwxrwxr-x 8 peter admin 4,0K mar 22 12:31 .
drwxr-xr-x 11 root root 4,0K mar 22 17:28 ..
drwxrwx--- 30 retropie admin 4,0K mar 23 17:17 retropie
drwxrwxrwx 2 peter admin 4,0K mar 23 17:19 writing
drwxrwxr-x 3 peter admin 4,0K feb 1 17:00 service
drwxrwxr-x 7 peter admin 4,0K mar 23 17:21 temporary
This is smb.conf:
Code: Select all
[retropie]
available = yes
browseable = yes
path = /srv/folders/retropie
read only = no
public = yes
create mask = 0770
directory mask = 0770
[writing]
available = yes
browseable = yes
path = /srv/folders/writing
read only = no
public = yes
create mask = 0777
directory mask = 0777
[service]
available = yes
browseable = yes
path = /srv/folders/service
read only = no
public = yes
create mask = 0775
directory mask = 0775
[temporary]
available = yes
browseable = yes
path = /srv/folders/temporary
read only = no
public = yes
create mask = 0775
directory mask = 0775
I want to restrict the access in that folder according with the 770 permissions, then the user "retropie" and the member users of "admin" can login with their password and read/write.
When on a client in LAN I try to mount the folder, I get this error:
Code: Select all
root@retropie:/tmp# mount -t cifs //192.168.1.2/retropie roms -o username=retropie,password=mypw,dir_mode=0777,file_mode=0777,iocharset=utf8
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Please help!