After stripping out the comments and most of the configuration directives from the stock
smb.conffile, I was left with a nice short file that works. The objective was to have the home directory available for users that are configured, and a public directory for anyone, also there should be no permissions restrictions on the public directory, people should be able to modify each others files.
[global] dns proxy = no map to guest = Bad User guest account = guest unix extensions = no server string = Home server log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 [homes] browsable = no read only = no valid users = %S [public] read only = no guest ok = yes force user = guest path = /export/public
I had also created a guest account for this setup.
sudo useradd guest -m -p \*
And of course the public directory to share
sudo mkdir /export sudo mkdir /export/public sudo chown guest /export/public
The server is behind a home router, which acts as a firewall, I would not put a configuration like this directly attached to the internet.
Post a Comment