Sunday, April 15, 2012

Ubuntu 11.10 -- samba setup

Ok now that we have all the disk setup we need to setup samba shares that so they drives are available on the network

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

No comments:

Post a Comment