- Install samba with apt-get.
- Edit the /etc/samba/smb.conf file.
[global]
netbios name = ALEXRAIT
workgroup = MSHOME
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPLIVE SO_RCVBUF=819 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
[E]
path = /media/hda5
available = yes
browsable = yes
public = yes
writable = no - As a result we share the folder specified under "E". "E" Is the name of the shared folder that appears if we access the computer from other LAN station. You can add more of these folders or use a Configuration GUI that comes with ubuntu (Look at the System menu).
- Now we must add a user that will have the permission for browsing our folders. Do it like this: smbpasswd -L -a alexrait
- Enter a non-empty password.
- That is it