sudo apt-get install samba sudo apt-get install libpam-smbpass
Then edit and update the settings
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.20120415 sudo vi /etc/samba/smb.conf
workgroup = WORKGROUP security = user
Then at the bottom add in your shares
[share200GB] comment = 200GB Share path = /media/biggy browsable = yes guest ok = no read only = no create mask = 0755
Keep in mind that if you give "guest ok = yes" then anyone can get in to the disk and read write etc...
Then reboot the samba server
sudo restart smbd sudo restart nmbd
In the end I also had add an new user and force that user to be enabled as well with:
sudo useradd --home /home/remote --shell /bin/false remote sudo passwd remote sudo smbpasswd -e remote
https://help.ubuntu.com/11.04/serverguide/C/samba-fileserver.html
No comments:
Post a Comment