Fedora Linux Support Community & Resources Center
  #1  
Old 8th July 2010, 12:03 PM
Kholdstate Offline
Registered User
 
Join Date: Jul 2009
Location: Sweden
Age: 29
Posts: 24
macosfirefox
SAMBA file permissions

I'm working a bit on improving my home network where I've set up a share called LIBRARY that contains things like music, pictures and similar. Within this share I'd like to create folders that are only available to certain users. I thought this would be easy to do by using file system permissions but samba will create files that belong to the user and their primary group unless i set a "force group" but this sticks throughout the entire share (including subfolders). If I create the directory "project" in LIBRARY (/1000/LIBRARY/project) and set the permissions up as follows:

Code:
drwxrwx---.  5 root proj 4096 Jul  7 22:34 project
with users eric and chris in the group proj they will be the only ones able to view the folder project but files they create within project will belong to the group smblib and this seems like a bit of a problem from a security pov, maybe this isn't an issue in the network I'm currently setting it up in I'm all for doing things properly.

Is it possible to set up samba to set different file permissions within different directories in the same share? I want my all users to create files that belong to the user and smblib in library except for in the project directory where they should belong to user and proj. I know I can get it to work by moving proj out of library but I don't fancy the idea of having too many shares or is that the only option?

The share in smb.conf:
Code:
        [LIBRARY]
        comment = Library
        path = /1000/LIBRARY
        writable = yes
        force group = smblib
        create mask = 0660
        directory mask = 0770
        valid users = eric chris emily
all users are part of the smblib group
Reply With Quote
Reply

Tags
file, permissions, samba

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba File Permissions Best Practice arthurhanlon Servers & Networking 1 17th May 2009 09:20 PM
File Permissions and SAMBA shares 07CobaltGirl Using Fedora 15 3rd December 2008 04:33 AM
Samba file and user permissions gerrit Servers & Networking 0 24th September 2008 12:17 PM
samba file/directory permissions bohr Servers & Networking 2 22nd August 2005 07:38 PM
Setting up a SOHO file/printer server & file permissions byw Servers & Networking 3 23rd August 2004 06:53 PM


Current GMT-time: 19:38 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat