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 |
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 |
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! |
get www.webmin.com... greatly simplifies the samba setup procedure....
|
All times are GMT -5. The time now is 02:22 AM. |