installing and configuring samba
1. Install Samba
It is best to have Samba installed in the installation process :
sudo apt-get install samba samba-client
2. Add Shares
You need to edit /etc/samba/smb.conf :
sudo gedit /etc/samba/smb.conf
Set your Windows Workgroup name in [global] section.
Added shares at the end of the file. Example:
workgroup = WORKGROUP
server string = Samba Server Version %v
# A publicly accessible directory, but read only, except for people in
# the “staff” group
[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = no
write list = +staff
[Share]
comment = Samba shares
path = /home/commons
read only = no
valid users = smartrpoteam
create mask = 0775
directory mask = 0775
#
# New additional samba shares
#
[mnt_local]
comment = Local shares
path = /mnt/local
public = yes
writable = yes
browseable = yes
[mnt_resume]
comment = Resume partition
path = /mnt/resume
public = yes
writable = yes
browseable = yes
[mnt_account]
comment = Accounts partition
path = /mnt/account
public = yes
writable = yes
browseable = yes
If ‘writable’ the location must be writable in Linux first. Additionally permissions must match (for example: drw-rw-rw-).
If home data (all personal files under /home/username) is to be accessible, then set ‘browseable = yes’ under [homes] (~line 250). This configuration file is very descriptive, read through it to get more ideas or information.
3. Add Users
To access shares, you must be a valid user. Add valid users AND passwords using the smbpasswd command.
This login name WILL be the login name and password you use from Windows to access your Linux computer. The password does NOT need to match your Linux password.
sudo smbpasswd -a smartproteam
New SMB password:
Retype new SMB password:
account_policy_get: (warnings ignored)
Added user username.











Leave your response!