Samba setup
Here is an Ubuntu 6.10 Samba setup guide blatantly ripped from this blog. If you have more than one computer and a mixture of Linux and Windows, Samba is essential for sharing files and printers. Enjoy!
- Install samba
sudo apt-get install samba smbfs
- Add a system user for samba
System > Administration > Users and Groups > Add User
Enter the username as samba
Enter the password
In the "User Priviliges" tab, deselect all.
In the "Advanced" tab, choose "/bin/false" as shell, and "users" as the Main Group.
- Add samba user
sudo smbpasswd -a samba
Enter the password desire
*This is the username and password that will be require when you are connecting to your ubuntu guest through windows box.
- Edit smbusers file
gksudo gedit /etc/samba/smbusers
Enter this in the file
samba = "network username"
Save the file and exit gedit
- Edit smb.conf configuration file
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.default
gksudo gedit /etc/samba/smb.conf
- Change your workgroup name in smb.conf
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = YOUR_WORKGROUP_NAME
- Uncomment security section
; security = user
Change into
security = user
username map = /etc/samba/smbusers
- Add samba share
System > Administration > Shared Folders
Enter information for your desired shared
- Test configuration and restart samba
sudo testparm
sudo /etc/init.d/samba restart
That’s it!