LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 0
Inherit Permissions in Samba


Hello,

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...


[Share1]
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?

Thanks,
Matt
 
Old 10-09-2003, 05:37 PM   #2
mslane
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.

Matt
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration