Samba-Windows Share with User Login

Samba-Windows Share with User Login

Postby saschat » 05 Nov 2013, 12:43

Hello People

Here's a guide how to create a Samba shared with user authentication

Creating user in system
Code: Select all
sudo adduser username

Creating user in samba
Code: Select all
sudo smbpasswd -a username

save smb.conf and create a new file
Code: Select all
sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo nano  /etc/samba/smb.conf

Code: Select all
 workgroup = Workgroup
 security = share
 share modes = yes

 [share] #sharename
 path = /path/to/share
 public = no
 writable = yes
 comment = comment
 printable = no
 valid users = username

Set the Rights for the user for the sharefolder
Code: Select all
sudo chown -R  username:smbusers /path/to/share

Restart Samba
Code: Select all
sudo /etc/init.d/samba restart

yours sincerely,
Sascha T.
(ô_ó) Ernsthaft 90x90 Pixel 6KB Avatar Bilder (o_O)
(ô_ó)Seriously 90x90 pixels 6KB avatar images (o_O)
User avatar
Posts: 14
Joined: 02 Nov 2013, 23:27
Location: Germany

Return to Tutorials and Howtos

Who is online

Users browsing this forum: No registered users and 0 guests