Review your favorite Linux distribution.
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 11-05-2002, 12:30 PM   #1
LQ Newbie
Registered: Oct 2002
Posts: 6

Rep: Reputation: 0
Smile Samba Security Question

Hello all, I recently asked a question on this forum and posts i receive were extremely helpful and courteous so this will be my second thread:

SETUP: I recently set up samba on a linux computer as a file server for windows computers. Anyway I made several users in linux then put them all into a the same group, I then made samba users from those users and set up the smb.conf file to allow these users access to read and write to a specific folder. I also made the group these users belong to the owner of the this folder.

PROBLEM: All the users have full access to the folder as I want, but if one user creates a new folder he/she then is the only person that can write to the folder (However everyone can browse and read it). Ideally Id like all the users to have full access to all the folders in this share regardless of who made the folders. I have found that if I use the chmod -R 777 command on this folder then all the users can write to any newly created folders and delete them if they wish (which is what I want but I don't want to have to do that every 2 seconds).

Does anyone have any suggestions on what I can do, what I'm doing wrong, or possibly a good set of documentation that discusses the intricacies of getting samba to jive with linux user/group rights? I would really appreciate any information I could get.
Old 11-05-2002, 05:43 PM   #2
LQ Newbie
Registered: Oct 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Lightbulb Possibly found the problem

I may have found the problem. It seems in the smb.conf file I entered both valid users = john mary...etc, and writelist = @groupname, it is possible that both entries were conflicting. Ive now removed the valid users = john mary...etc line and the problem appears resolved. I would however still appreciate any input or any information from anyone who has dealt with a similar situation. Id also like to hear anyones recommendations on documentation I might possibly consult to explain linux security, specifically user and group access rights. Currently I am only guessing based on knowledge I have of Windows NT user and group access rights.
Old 11-05-2002, 05:59 PM   #3
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
I would add these directives to the share
force group = yourgroup
create mask = 0754

This will allow the users to create files and edit each others with the ownership remaining the same.

Make sure the directory has these permissions to start with.

Old 11-07-2002, 04:32 PM   #4
LQ Newbie
Registered: Oct 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Talking YAY!

THANK YOU SO MUCH!!!! That did it!! Youre the man I cant thank you enough!!!!


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 Security Question tntcoder Linux - Networking 7 05-22-2004 12:02 PM
Samba security question cyph3r7 Linux - Security 5 02-26-2004 03:00 PM
Samba Security Question gauge73 Linux - Networking 1 03-15-2003 05:37 AM
security on samba 2.2.5 ancutza67 Linux - General 1 02-11-2003 08:23 AM
Samba security Sathe Linux - Security 1 06-29-2002 04:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 PM.

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
Open Source Consulting | Domain Registration