Fedora Linux Support Community & Resources Center
  #1  
Old 28th June 2005, 05:04 PM
bohr Offline
Registered User
 
Join Date: Jul 2004
Posts: 8
samba file/directory permissions

Hi All

I have a FC3 running as a samba server. I have two people on XP pro machines that are sharing a directory. Both want to be able to read and write to the others files. If Person1 writes a Word file and then Person 2 tries to write/edit it, it gives a read only message. Here is my smb.conf share section

[private]
comment = private directory
path = /directory/private
valid users = Person1 Person2
public = no
writable = yes
printable = no
read only = no
browseable = yes
create mask = 0777

I have Person1 and Person2 in the same group and the private directory. What am I missing? Could it be who owns the private directory (which is Person1)?

Also, if Person1 creates a directory under the private directory it gives rwxr-xr-x permissions. How can i force it to make it writable? Many thanks!!!
Reply With Quote
  #2  
Old 30th June 2005, 02:29 AM
SharedMedia Offline
Registered User
 
Join Date: Nov 2004
Location: Ontario Canada
Age: 42
Posts: 85
Question SubDir..

Ummm... Hmmmm.. I once had this issue, however what I did (might work for you) is create a general "god - but not root" user not associated to private 1 & 2, create a general group like "shares" that owns a dir and give that general "god" user you made full 0777 rights. Then add private 1 & 2 to his/her group..

Kinda like a hierchy..

+ --------- General "GodUser"
++ ------------ owns the group "shares" / dir
+++ ------------------ private1 user is added to "shares" group
+++ ------------------ private2 user is added to "shares" group

Whomever creates items in the "shares" dir Inherits the same permissions...
Best thought I have at this time... very good question though.
__________________
Shared Media
Linux Redhat OpenSource Contributor
" Have you hugged a Penguin today.."
Reply With Quote
  #3  
Old 22nd August 2005, 07:38 PM
Brian W Offline
Registered User
 
Join Date: Aug 2005
Location: Chicago, IL
Posts: 11
Quote:
Originally Posted by bohr
I have a FC3 running as a samba server. I have two people on XP pro machines that are sharing a directory. Both want to be able to read and write to the others files. If Person1 writes a Word file and then Person 2 tries to write/edit it, it gives a read only message.

...

Also, if Person1 creates a directory under the private directory it gives rwxr-xr-x permissions. How can i force it to make it writable?
I have the exact same problem. See my post: http://www.fedoraforum.org/forum/showthread.php?t=73966

The logic that SharedMedia suggested works fine if you're accessing the shares via SSH, but the behavior is different when accessing the share via Samba.

Please help!

Thanks, Brian
__________________

Linux: The Choice of a GNU Generation
Reply With Quote
Reply

Tags
file or directory, 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
fedora 11 - what does the period at the end of directory/file permissions represent? bbobbo Using Fedora 2 17th June 2009 08:00 PM
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
execute permissions required for samba access to home directory?!?!?! wintermute000 Servers & Networking 2 22nd April 2006 05:31 AM


Current GMT-time: 04:13 (Monday, 28-07-2014)

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