LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-07-2007, 01:14 AM   #1
netjack
Member
 
Registered: Sep 2003
Location: Italy
Distribution: ubuntu 12.04 64 bit
Posts: 89

Rep: Reputation: 15
Best practice for shared dir


Hi,

I was wondering what is the best practice (on my ubuntu) for using a shared directory between multiple users on the same machine (i.e. analogously to the Documents and Settings/All Users on XP)?
Where would put that directory? /usr/share and then give rw to everyone?
Or maybe create a group "local users" and add the instances there and *then* give the group rw access to that folder?

Tia
 
Old 12-07-2007, 02:55 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 38
According to the file hierarchy standard, /usr contains shareable, read-only data. So if the users should be able to modify the data, this is not the right location.

I would put it in /home/public or in /srv/public. Since the data is for all users, it may be placed in /home. If you plan to serve the data also on the network for other users I would place it somewhere in /srv.

To prevent that users may delete data from other users I would chmod 1770 the directory and chown it to root:data so that only users that are in the data group have access to this shared data.
 
Old 12-07-2007, 04:44 AM   #3
netjack
Member
 
Registered: Sep 2003
Location: Italy
Distribution: ubuntu 12.04 64 bit
Posts: 89

Original Poster
Rep: Reputation: 15
Thanks for your reply. I will use /home/public! and have also a look at http://www.pathname.com/fhs/.
 
  


Reply

Tags
best, directory, shared, users


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 02:57 PM
Access shared samba dir that is on other partition ALInux Linux - Networking 1 04-02-2006 11:02 PM
Share configuratin dir (.dir) for 3 accounts on local computer LiNuXkOlOnIe Linux - Software 5 01-08-2006 03:36 AM
best-practice place to put shared directories funaroma Linux - Newbie 1 11-30-2004 03:50 PM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 PM


All times are GMT -5. The time now is 04:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration