sudo apt-get install samba
/etc/samba/smb.conf
sambashare
nmbd
and smbd
smb://[Samba host ip or host name]
users
for Samba access
sudo usermod -a -G users <usr>
to add id <usr>
to verifysudo smbpasswd -a <usr>
to add the user to the Samba databasesmb://[Samba host ip or host name]
sudo mkdir /samba/share
sudo chown <usr>:users /samba/share
sudo chmod ug+rwx,o-rwx /samba/share
sudo vim /etc/samba/smb.conf
security = user
under [global]
to require a Unix account on the Samba server [samba]
comment = Samba shared folder for all users
path = /samba/share
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
[samba]
specifies the share namesudo /etc/init.d/samba restart
smb://[HostName]/[SambaShareName]
To learn more, check out the book Using Samba.