Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

There is a powerful server with few users on it. Each user has gigabytes of data to process.

Sometimes a user may want to use other's file, and therefore writes output in other's folder.

What's the common practice to do it? I can think of create a /share folder and make it rwx to all. Is this the common practice? Any better location for this folder?

(Kind of feel that create a folder at / (root) for this purpose isn't good :S)

share|improve this question
2  
You need to define "accessible" in more details. Does /tmp serve your purpose? –  alex Jun 8 '11 at 5:48
2  
By access, do you mean read access, or read access + write access? Or something else? –  Faheem Mitha Jun 8 '11 at 6:50
add comment

2 Answers

up vote 1 down vote accepted

I think you are searching for /usr/local/share/ but it is hard to answer since this depends on what kind of file your are planning to "share" between users.

But if we are talking about office files or something like that maybe you should use use some kind of revision system like subversion or git. And then the users will have a checkout/clone in their homedir.


Update: A way to make this a little bit better could would be that every user gets it's own subdir in the shared folder. He is allowed to write in his own folder but not the other subfolders. And all users are allowed to read from all the directories. That way you don't have to think about file collisions if two users use the same filename, or deletes the colleges files by mistake.

Btw the idea behind /usr/ is described in the Filesystem Hierarchy Standard ( http://www.pathname.com/fhs/2.2/fhs-4.1.html )

-"/usr is shareable, read-only data."

So I would probably use a dir in either /home/ or /var/ instead...

share|improve this answer
3  
I think /usr/share/ and /usr/local/share are commonly used to store files shared between software packages, not users. –  Shadur Jun 8 '11 at 6:41
3  
/usr/share is for files provided by the package manager, /usr/local/ is for files related to some application not handled by the package manager. But you should not put office document in there or something like that... But this question is quite vague on what files he plan to share. –  Johan Jun 8 '11 at 6:45
1  
I concur. It's hard to give a useful answer until the question makes sense. –  Shadur Jun 8 '11 at 6:51
1  
No, /usr/share or /usr/local/share are unrelated to sharing between users. They're part of the system installation; share here means that the files can be shared between multiple architectures, on networks with heterogeneous hardware. Under Linux /usr is for files under the package manager's control and /usr/local is under the control of the system administrator. –  Gilles Jun 8 '11 at 22:32
add comment

For punctual use, the common practice is that each user creates files in their own home directory. ~/pub is a common name of a directory for files all other users are supposed to be able access. If only a subset of users may access certain files, use groups or access control lists to manage permissions.

For more advanced use, when multiple users may work on the same file, use a version control system. There's no really standard place to store the (master) repository; I've seen repositories under ~someuser/$project, /net/repositories/$project, /srv/repositories/$project, /var/www/$project, /home/$project, etc.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.