Xubuntu 14.04 Samba setup for access by ubuntu and windows clients
Reading this, this and this helped.
Samba Server setup
On the samba server, run the following:
sudo apt-get install samba samba-common system-config-samba gksuI received errors that certain samba package dependencies could not be met, and searching for a fix led me to do this:
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get purge samba-common
sudo apt-get purge samba-libs
On xubuntu, could not find the samba config GUI from the menu, turns out I had to run it like this:
gksu system-config-samba
At this point in time I configured the share and user.
Samba Client (linux)
On the first client, an ubuntu machine, I ran the following to get configured
sudo apt-get install samba cifs-utils
Create a credentials file so that the user and password is not littered everywhere
Set permissions to ro:
Add this line:
sudo apt-get install samba cifs-utils
Create a credentials file so that the user and password is not littered everywhere
sudo nano /etc/samba/userAdd these:
username=samba_user
password=samba_user_password
Set permissions to ro:
sudo chmod 0400 /etc/samba/userThen edit /etc/fstab, add this entry as a new line to mount on boot:
sudo cp /etc/fstab /etc/fstab.bak1
sudo /etc/fstab
Add this line:
//samba-server/share /media/share cifs credentials=/etc/samba/user,noexec 0 0Either reboot or mount and you should be in:
sudo mount /media/share/
Samba Client (Windows)
@quintes