Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
General Linux > Samba > Issue <<  35 of 98 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 3424
Last update: 09-26-07
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.


How well did this entry answer your question?


good wrong incomplete out of date
General Linux > Samba > Issue <<   35  of  98  >>