LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-20-2003, 09:59 AM   #1
decoone
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
Question Samba Public Folder Permissions


I have a Samba server with a Public folder. Inside the Public folder, there are subfolders belonging to various groups. I need a way to make sure that any files or folders created or edited within these subfolders ALWAYS take on the permissions of the parent folder - Is that possible? How?
 
Old 11-20-2003, 10:06 AM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
How about 'force create mode' or 'force directory mode' for the share:

http://freebooks.by.ru/view/SambaIn24h/ch07-03.htm
 
Old 11-20-2003, 11:45 AM   #3
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

Under linux set the SGID on the folder. The folder perms will look like this e.g rwxrwsr_x folder. Make sure that the users u want r placed in the correct group. Use the cmd chmod g+s folder or chmod 2??? folder.

chow
 
Old 04-01-2004, 07:21 AM   #4
siddysid
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Shared Directory

I tried creating a shared directory. I created the group project. Added several users to the group. Changed the permissions on the directory with chmod 770 /home/project. Then I set the SGID wit chmod g+s /home/project. I tried logging in as one of the users and they get permission denied. What am I doing wrong? Help please. Thanks in advance.
 
Old 09-26-2007, 12:42 AM   #5
balackcheng
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by siddysid View Post
I tried creating a shared directory. I created the group project. Added several users to the group. Changed the permissions on the directory with chmod 770 /home/project. Then I set the SGID wit chmod g+s /home/project. I tried logging in as one of the users and they get permission denied. What am I doing wrong? Help please. Thanks in advance.

Hi,

Instead of using sgid for the above action, you should use force group = project in smb.conf. Pls see below for an example:

[project]
comment = Project shared folder
path = /home/project
read only = yes
write list = @project
create mask = 0660
directory mask = 0770
force group = project

Hope this help!
 
  


Reply


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 Public Share Folder Echo Kilo Linux - Software 3 06-17-2008 01:32 AM
Samba Public shared Folder will not hold permissions xzerros Linux - Networking 12 09-26-2005 09:25 AM
Folder permissions problem with Samba albracco Linux - Networking 4 08-24-2004 10:09 PM
samba folder permissions problem albracco Linux - Software 4 07-02-2004 07:01 PM
Samba Public Folder DerrickCheang Linux - Newbie 3 10-29-2002 06:04 AM


All times are GMT -5. The time now is 11:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration