I have a folder in /var/www/html/ that people upload files to via PHP called store.
store has the permissions rwxrwxr-- it is owned by the user josh and the www-data group.
The store folder is also an SMB share and works if I use josh to login to it. However I need everyone to be able to access it but without write permissions as well.
This is what I have tried in my samba config:
[propellor]
path = /var/www/html/store
browsable = yes
guest ok = yes
read only = yes
write list = josh
create mask = 755Mapping a network drive in Windows allows me to read and write if I use josh credentials but will not let me open the share at all if I am a guest or use another (Windows) user account.
I am missing something in my settings or permissions surly.
Thanks!
2 Answers
Create a new user first: sudo useradd samba-guest.
Search your smb.conf for guest account. Set this to samba-guest (guest account = samba-guest).
Now restart Samba and it should work.
For more info, please click here.
Note: don't forget to give samba-guest read permissions for /var/www/html/store.
You can use sticky for the other file permission in samba share file. or you can also add the guest user and change the permission for them on share folder.