This question already has an answer here:

Can I put a folder in the top of the main drive (is that the root?) so that the two users of the machine can use it freely. For example, I'd like to put music in it so that both users can import to Rhythmbox. We also need to keep other various files and docs there and we need to edit files created by eachother.

I'm not magnificently knowledgeable of term commands, so if someone could give me reasonably detailed instructions, I'd be very grateful.

If there's a better way to do what I want; I'm listening...

Many thanks.

Using Ubuntu 18 (if you want to help with my Ubuntu<>MacOS filesharing problem, please look for my other post).

marked as duplicate by Panther, Terrance, Andrea Lazzarotto, dobey, karel May 15 '18 at 14:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


ACL can help:

# Create shared directory
sudo mkdir -p /media/Shared

# Give user1 and user2 rwX access to /media/Shared
sudo setfacl -m u:user1:rwX '/media/Shared'
sudo setfacl -m u:user2:rwX '/media/Shared'

# Make rwX access the default for new files and folders for both users
sudo setfacl -m default:u:user1:rwX '/media/Shared'
sudo setfacl -m default:u:user2:rwX '/media/Shared'

Change user1, user2 and /media/Shared to your needs.

  • Brilliant! Many thanks for your response. (Is it OK to thank people for their help here?) – spaceprobe May 16 '18 at 7:30
  • I'm glad my answer helped. Sure it's okay to thank others in comments. But usually you just thank people by up-voting or accepting answers ;-) – pLumo May 16 '18 at 7:37

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