Io nel mio file di configurazione /etc/samba/smb.conf, nella sezione [global], ho settato questi due parametri
Codice: Seleziona tutto
[global]
...
directory mask = 0755
create mask = 0644
...
Codice: Seleziona tutto
[temp]
comment = Temp
path = /temp
available = yes
browseable = yes
writeable = yes
; If this parameter is yes for a service, then no password is required to connect to the service
guest ok = no
; If this parameter is yes for a service, then only guest connections to the service are permitted
; This parameter will have no effect if guest ok is not set for the service
guest only = no
Codice: Seleziona tutto
thece@vm-fc-994:~$ cd /temp/
thece@vm-fc-994:/temp$ ll
total 8.0K
drwxr-xr-x 3 thece thece 4.0K Apr 30 21:46 New Folder
-rw-r--r-- 1 thece thece 2 Apr 30 21:46 Text File
thece@vm-fc-994:/temp$ cd New\ Folder/
thece@vm-fc-994:/temp/New Folder$ ll
total 8.0K
drwxr-xr-x 2 thece thece 4.0K Apr 30 21:46 New Folder
-rw-r--r-- 1 thece thece 2 Apr 30 21:46 Text File
thece@vm-fc-994:/temp/New Folder$
Ovviamente proprietà e permessi di file e (sotto)directory già presenti all'interno della directory (share) da condividere vanno impostati manualmente