General Linux > Samba > Issue
<<
35 of 98
>>
Issue:
How do I add a user to a Samba (SMB) share?
Resolution:
One way for a user to browse a Samba share is have a UNIX account on the Samba server. This is done via the commands
adduser [username] and
passwd [username]
Once the user has a local account their Samba password can be initalised by:
smbpasswd -a [username]
The
-a switch adds
[username] to the Samba password list.
Configure the Samba share in the
/etc/samba/smb.conf configuration file to allow the new user to browse the share:
[ashare]
comment = A Shared Directory
path = /usr/somewhere/shared
valid users = mary [newuser]
public = no
writable = yes
|
Use
testparm to show your updated share. Reload the
smb.conf configuration file with
service smb reload command.
General Linux
>
Samba
> Issue
<<
35
of
98
>>