Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-07-2007, 02:14 AM   #1
Registered: Sep 2003
Location: Italy
Distribution: ubuntu 20.04.4 LTS
Posts: 99

Rep: Reputation: 15
Best practice for shared dir


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?

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

Rep: Reputation: 40
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, 05:44 AM   #3
Registered: Sep 2003
Location: Italy
Distribution: ubuntu 20.04.4 LTS
Posts: 99

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


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 03:57 PM
Access shared samba dir that is on other partition ALInux Linux - Networking 1 04-03-2006 12:02 AM
Share configuratin dir (.dir) for 3 accounts on local computer LiNuXkOlOnIe Linux - Software 5 01-08-2006 04:36 AM
best-practice place to put shared directories funaroma Linux - Newbie 1 11-30-2004 04:50 PM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 08:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:57 AM.

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