Transparently sharing dir and files

Kihara Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Jan 17 16:53:18 UTC 2006


Hi all,
Lets say someone ask you to set up Red Hat box for collaboration
transparently? Is that practical or does the users have to do it
consciously? Can one disable RedHat form creating a group for every
goddamn user? Yeah, it mess up security, but if its easy, I think that
would be the way to go in an exam situating.
This is how I attempted it
Created a group called accounting
#groupadd accounting
Populated it with some names Tom, Jack and Jane
#adduser -g accounting Tom
#adduser -g accounting Jane
#adduser -g accounting Jack
Jack is always bossy, even though he has no power, so we might as well
give him some
#gpasswd -A Jack
Then create a group directory
Now, here is a kludge way of creating a shared dir (please advice if
you know a better way)***
I assigned a password to jack
#passwd jack
****
Log in as jack
#su jack
#mkdir /home/jack/accountdoc (Is that the proper place to do it
according to FSH?)
The idea is, if I create a dir as Jack, I can be able to assign it to
the account group - problem is, I can not however create a dir right
above /home. On the other hand, as root is not in accounting group, I
can't think of a way to passing dir over to accounting group other
than being in a group initially.
Then
#fchmod -g 4071 /home/jack/accountdoc (Setgid to make groups right
propagate when new files are created, read, write and execute rights
to the group and execute for others)
Now, the users in the group has to create a file and them do something like this
$mv /home/jane/reconciliation.xls /home/jack/accountdoc

  I was thinking of pointing all group users applications to save to
the group dir by default - to avoid the above commands - but that may
lead to some bedroom stories leaking to the whole group  by accident.

That is how I handled it, not working that well and that is where I am
seeking help. Would you mind commenting what you would do differently?

William
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list