[LUNI] Fine tuning my samba setup
Trev Peterson
trev at advanced-reality.com
Sat Jun 2 10:38:18 CDT 2007
There are several ways to do things however it seems the problem here is
your directory structure. In particular you have:
/opt/FCM/<user specific dir>/<group shared file>
If you can I would change your structure to something like:
/opt/FCM/jblum
/opt/FCM/phillips
/opt/FCM/shared
Then each of the dirs can be given the appropriate permissions and you
are done with it. If you can't change your dir structure then you have
to tell samba what rules you want each time they change.
Hope this helps,
Trev
On Fri, 2007-06-01 at 15:23 -0500, Jay Strauss wrote:
> I'm having a hard time fine tuning my samba setup (regarding ownership
> and permissions). My salient bits of my smb.conf are:
>
> [jblum#]
> path = /opt/FCM
> valid users = jblum, jstrauss
> force user = jblum
> force group = manager
> read only = No
> create mask = 0660
> directory mask = 0770
> hide unreadable = Yes
>
> [phillips#]
> path = /opt/FCM
> valid users = phillips, jstrauss
> force user = phillips
> force group = manager
> read only = No
> create mask = 0660
> directory mask = 0770
> hide unreadable = Yes
>
> [jstrauss#]
> path = /opt/FCM
> valid users = jstrauss
> force user = jstrauss
> force group = manager
> read only = No
> create mask = 0660
> directory mask = 0770
> hide unreadable = Yes
>
> My goal was to have each of us users, view the same directory
> structure, but when each of us create a file it would be owned by the
> creator and only visible by the creator. I (jstrauss, as the
> manager), sometimes go into the jblum# share, create a file, and the
> ownership is jblum. This is the correct and anticipated behavior.
>
> The problem is some of the directories under /opt/FCM contain shared
> files (shared between all of us). I want a common owner of "fcm" on
> files in these shared directories, and rw-rw-rw permissions. What
> happens currently, is when jblum (or phillips) edits one of those
> shared files the ownership is changed from fcm -> jblum and the
> permissions are changed to 660.
>
> I'm trying to avoid having a bunch of shares setup, just to maintain
> my permissions and ownerships. I'm hoping someone here knows how to
> accomplish the above with minimal pain
>
> Thanks
> Jay
--
Trev Peterson
Advanced Reality
Email: trev at advanced-reality.com
Phone: +1 847 406 9018
More information about the luni
mailing list