Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111
Rep:
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.