LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-23-2004, 01:56 AM   #1
kicken
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
groups
and give access

this is what i want to do i have these folders

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

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


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

[programs]
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
douglas
alice
mhenry
tom
bob
dan

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

help
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
phase9
Member
 
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15
Hi

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/,...).


PS:
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:
adminshare:*:<gid>:douglas,alice,bob
forestryshare:*:<gid>:douglas,alice,bob
 
Old 06-07-2004, 09:26 AM   #3
lazlow69
Member
 
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
t3___
Member
 
Registered: Sep 2003
Posts: 240

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


Reply


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


All times are GMT -5. The time now is 07:40 PM.

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