Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-09-2003, 05:10 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Inherit Permissions in Samba


I am trying to set up a file server using Samba on Redhat 8.0. Everything is working fine except inheriting group permissions. I want everything copied into the directory to default to the group assigned to the directory. I have this setup in my smb.conf file...

comment = Public Share
path = /home/public
browseable = yes
writable = yes
public = yes
inherit permissions = yes
directory mode = 0775

Some of the values were defaulted into the smb.conf file so I left them there. I'm not sure I need the directory mode, public, or writable attributes.

Anyway, when I copy a file or new directory into the share, the group is always the users group. For instance...

drwxrwxr-x 1 user user 1000 Oct 9 test.txt
(where user is the user name and group name)

I want it to instead automatically default to

drwxrwxr-x 1 user public 1000 Oct 9 test.txt
(where user is the user name and public is the inherited group name)

I thought the "inherit permissions = yes" attribute would set this. Any thoughts?

Old 10-09-2003, 05:37 PM   #2
LQ Newbie
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
SetGID bit

I found a post that answered my question. The permissions for the top level directory needed to be 2775 in order to set the gid bit.

I ran the following command

chmod -R 27775 /home/public

and everything worked after that.



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
How to make a file inherit script permissions antony.booth Linux - Security 4 03-11-2005 05:04 AM
SAMBA says 'Samba Server is not accebile, you might have no permissions' Ahmad Gurchani Linux - General 1 01-01-2005 10:34 AM
Samba Won't Inherit Permissions blackrain69 Linux - Software 1 10-13-2004 01:46 AM
How To Have Accounts 'Inherit" Customizations CAL Linux - Newbie 4 04-07-2004 06:40 PM
Samba permissions djtsa Linux - Newbie 6 10-03-2003 07:22 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:38 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
Open Source Consulting | Domain Registration