Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-29-2003, 03:59 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Talking samba?

I am newbie in linux. any one can tell me how to a add valid user in samba?


Last edited by nightworlds; 07-29-2003 at 04:22 PM.
Old 07-29-2003, 04:25 PM   #2
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you want to only allow specific users access to a share, add the valid users option
   comment = Mary's and Fred's stuff
   path = /usr/somewhere/shared
   valid users = mary fred
Old 08-01-2003, 03:40 PM   #3
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Rep: Reputation: 15
Mathieu's forgotten to give you some extra information.

The file you need to add the [myshare] area to is usually /ect/samba/smb.conf

You should change valid users = mary fred to

valid users = (whatever usernames you want to use)

When you're done, you need to save the file.

Then, you must open a command prompt (or console) and type in

smbpasswd -a username
Substituting "username" with whatever username you included in your smb.conf file.

It'll ask for a password; give it whatever you want to use as a password. Hit enter again and you're set, you have SAMBA configured and ready to run. You will have to restart the SAMBA service, so that it will read the new configuration.
Old 08-08-2003, 02:07 PM   #4
LQ Newbie
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Mathieu and sickboylives.

I really appreciate it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration