Re: Creating a common folder for all users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux