Creating a common folder for all users
Ed Greshko
Ed.Greshko at greshko.com
Mon Sep 29 08:57:50 UTC 2008
Steve Repo wrote:
> I have a f9 system at home and it is used by me, wife and kids.
>
> Sometimes we want to share files docs, pictures and stuff. Here are my plans,
>
> 1. mkdir /fileshare
>
> 2. create "share" group
>
> 3. add all users this group
>
> 4. chmod -R ug+rwx /fileshare
>
> 5. chown -R root:share /fileshare
>
> 6. for each user, rm -rf /home/<user>/Public
>
> 7. for each user, ln -s /fileshare /home/<user>/Public
>
> Whatever they copy to their Public directory, it will be visible by all.
>
> Will this work? Is there a better idea?
>
No need to make a group called share. Use the idea of /tmp as your
guide. Just make sure that you set the sticky bit for the directory you
create....
STICKY DIRECTORIES
When the sticky bit is set on a directory, files in that
directory may
be unlinked or renamed only by root or their owner.
Without the
sticky bit, anyone able to write to the directory can delete or
rename
files. The sticky bit is commonly found on directories, such as
/tmp,
that are world-writable.
--
"If a computer can't directly address all the RAM you can use, it's just
a toy." -- anonymous comp.sys.amiga posting, non-sequitir
More information about the users
mailing list