Configuring Samba users and shares on Linux
A quick guide to setting up Samba users and shares. The instructions below were developed on a Mandrake system and may be slightly different for other distributions.
- Download and install the samba server
- Add your shares in /etc/samba/smb.conf. This file usually has examples embedded as comments
- Add users in /etc/samba/smbusers. Format is
add <unix_username> = <smb_username1> <smb_username2> ... - Specify the password for the new user in /etc/samba/smbpasswd.
You can do this as follows:
smbpasswd -a <unix_username> - Restart samba
/etc/rc.d/init.d/smb restart