Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 11075  / 2 Years ago, sun, october 9, 2022, 4:55:07

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 = 755


Mapping 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!


More From » server

 Answers
1

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.


[#25708] Monday, October 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
darpose

Total Points: 424
Total Questions: 99
Total Answers: 121

Location: Jersey
Member since Fri, Oct 1, 2021
3 Years ago
darpose questions
Sun, Jan 23, 22, 04:32, 2 Years ago
Tue, Apr 25, 23, 23:44, 1 Year ago
Wed, Dec 15, 21, 14:42, 2 Years ago
Wed, Jun 2, 21, 23:41, 3 Years ago
;