Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-03-2003, 09:41 AM   #1
LQ Newbie
Registered: Oct 2003
Location: Austria
Distribution: Debian
Posts: 11

Rep: Reputation: 0
Samba: What group/user is used by Samba to access directories?

As samba usernames are usually independent of linux-usernames it seems logical to me that samba does not use the samba usernames to access files and directories.

So if a directory is shared, who should be allowed to read/write there so that all samba users may access this directory? (Should not be everyone i believe...)
Old 10-03-2003, 09:47 AM   #2
Senior Member
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
If you make a local group called something like sambausers. Then add the local users that you want to access that directory/file and give that group read/write permissions. Then set the appropriate permissions in samba too. The way I understand it is that samba both checks local and samba permissions when accessing a file.
Old 10-03-2003, 09:49 AM   #3
Registered: Oct 2002
Location: Miami, FL
Distribution: Ubuntu
Posts: 184

Rep: Reputation: 30
For samba, it requires that you have a UNIX/Linux user for every Samba user you have seeing as the home directory is that of a linux user. So if you have the user 'joe' on your linux box and want him to be able to access a samba share remotely. You need the equivalent Samba user named 'joe'. As far as if you want an entire directory for everyone to write to, just create the directory and make a group and put "valid users = @group" and to your "write list" param put the "@group". Yes, the @ is required because it denotes a group.
Old 10-04-2003, 04:21 AM   #4
LQ Newbie
Registered: Oct 2003
Location: Austria
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you very much for your answers, I'll go and have a try ;-)


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 and quotas per user and group fcloquell Linux - Software 0 11-14-2005 10:07 AM
samba : access denied for some user in same NT group on a folder mtrento Linux - Networking 0 06-27-2005 10:01 AM
no access to shared directories with samba Meriadoc Linux - Networking 1 03-13-2005 06:42 AM
group access for specic folders in samba fidelis Linux - Networking 0 09-20-2004 03:20 AM
Permissions/group access when using Samba Nylix Mandriva 8 05-05-2004 03:39 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:53 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