After Six Year of Silent I thought to write new post about Samba installation
1. Install Samba
2. Backup the original Samba conf file
3. Edit the smb.conf file
4. Create Anonymous Folder
5. Restart the Samba Server
6. Add user to new user
7. Adding user to Samba
8. Finally restart Samba again
1. Install Samba
apt-get install samba samba-common python-glade2 system-config-samba
2. Backup the original Samba conf file
mv /etc/samba/smb.cnf /etc/samba/smb.cnf.bak
3. Edit the smb.conf file
vim /etc/samba/smb.cnf
and add the following lines
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
dns proxy = no
#============================ Share Definitions ==============================
[Anonymous]
comment = Anonymous Share
path = /samba/public
browsable =yes
writable = yes
guest ok = yes
public = yes
read only = no
create mask = 0777
directory mask = 0777
[prabath]
comment = Prabaths profiles
path = /home/prabath
guest ok = no
browseable = yes
create mask = 0777
directory mask = 0777
valid users = prabath
writable = yes
#for each profile please repeat the above [prabath] config
4. Create Anonymous Folder
mkdir -p /samba/anonymous
5. Restart the Samba Server
service smbd restart
6. Add user to new user
sudo adduser prabath
7. Adding user to Samba
smbpasswd -a prabath
8. Finally restart Samba again
service smb restart