Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-23-2004, 01:56 AM   #1
LQ Newbie
Registered: May 2004
Location: Utah
Distribution: Knoppix, Gentoo, Mandrake, Redhat,
Posts: 19

Rep: Reputation: 0
Setting up Samba

Help Please
i got the samba config file setup
but i cant figure out how to add users
and give access

this is what i want to do i have these folders

comment = admin Share
path = /usr/parks/admin
valid users = @adminshare
public = no
writable = yes
printable = no
browseable = yes

comment = Design Share
path = /usr/parks/design
valid users = @designshare
public = no
writable = yes
printable = no
browseable = yes

comment = Forestry Share
path = /usr/parks/forestry
valid users = @forestryshare
public = no
writable = yes
printable = no
browseable = yes

comment = Programs Share
path = /usr/parks/programs
valid users = @programsshare
public = no
writable = yes
printable = no
browseable = yes

so thats the basis of my config i need to add these groups
adminshare forestryshare designshare programsshare
and then these users

and douglad alice bob need to be in the admin share and forestryshare

mhenry tom need to be in the designshare and programshare

and the rest need to be in designshare

i need to know how to add thees users

do i add them in ussermanager or in samba and if in samba how or in both ?
help please
Old 05-23-2004, 04:32 AM   #2
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15

You have to create the users and groups under your linux system (depends by your distro). Then add the users to samba, like below:

/usr/bin/smbpasswd -a douglas

use the option -a for adding users, -x for deleting, -e enabling, -d disabling samba users.

Then you should assign the appropriate groups (adminshare, forestryshare,...) to the (linux) users (again depending on your distro) and then you have to set the appropriate permissions to the directories (/usr/parks/admin/,...).

Adding (linux) users by hand, you may use: /usr/sbin/useradd
and for a (linux) group: /usr/sbin/groupadd.
To assign (linux) users to (linux) groups, simply edit /etc/group

example entries in /etc/groups will look like:
Old 06-07-2004, 09:26 AM   #3
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Rep: Reputation: 15
What a wonderfully concise thread! I was trying to get my samba up and running on a slack 9.1 install, found this thread throgh google, followed the smb.conf suggestions in first thread, added user according to second thread, spun up a little smbd and voila! You can't buy help this good!

For those trying to get samba running on a slackware machine, remember to 'chmod 755 /etc/rc.d/rc.samba' so that it starts on a reboot! Good stuff!
Old 06-07-2004, 07:08 PM   #4
Registered: Sep 2003
Posts: 240

Rep: Reputation: 30
get greatly simplifies the samba setup procedure....


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
Setting up Samba under 5.0.4 Linux31 Ubuntu 2 07-04-2005 12:37 AM
Help setting up Samba... CaptainRegular Linux - Networking 2 04-05-2005 08:03 AM
setting up samba true_atlantis Linux - Newbie 1 05-28-2004 07:53 AM
Setting up Samba Spyder_Snyper Linux - Networking 2 01-24-2004 10:23 PM
Setting up Samba fettouhi Linux - Newbie 14 08-05-2003 08:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration