How to create a directory for everyone with rw permissions.

Asked by Major Andras

Hello

I want to create a directory for all local users. In this directory the users can read and write everybody's files.
I want to all created, copyed, moved, etc. file or directory became read and writeable everyone in this directory.

Any idea ?

Bye

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

Thanks for this question.

Create a group, make all the user that should be able to share members of this group, and allow full permission in the directory to this group (i.e. chmod g+rwx <dir name>).

I hope this helps

Revision history for this message
Christoph Langner (chrissss) said :
#2

Or without groups. E.g. create a subdir in /home

# sudo mkdir /home/exchange

an set the rights to

# sudo chmod 1777 /home/exchange

Now everyone may create, write and read there. You'll find more infos about file rights here

http://en.wikipedia.org/wiki/Sticky_bit
http://en.wikipedia.org/wiki/Chmod

CU
Christoph

Can you help with this problem?

Provide an answer of your own, or ask Major Andras for more information if necessary.

To post a message you must log in.