How can two users share one folder? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite













This question already has an answer here:



  • Truly share a folder with multiple users on a computer

    3 answers



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).







share|improve this question












marked as duplicate by Panther, Terrance, Andrea Lazzarotto, dobey, karel May 15 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.














  • See also joshua14.homelinux.org/blog/?p=1383 . There are several options, SGID and groups are easiest, ACL and (or) bindfs are alternates.
    – Panther
    May 15 at 14:05











  • See askubuntu.com/questions/52584/… and brunogirin.blogspot.com/2010/03/…
    – Panther
    May 15 at 14:08










  • I had achieved this by symbolic links
    – noone
    May 15 at 14:08














up vote
0
down vote

favorite













This question already has an answer here:



  • Truly share a folder with multiple users on a computer

    3 answers



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).







share|improve this question












marked as duplicate by Panther, Terrance, Andrea Lazzarotto, dobey, karel May 15 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.














  • See also joshua14.homelinux.org/blog/?p=1383 . There are several options, SGID and groups are easiest, ACL and (or) bindfs are alternates.
    – Panther
    May 15 at 14:05











  • See askubuntu.com/questions/52584/… and brunogirin.blogspot.com/2010/03/…
    – Panther
    May 15 at 14:08










  • I had achieved this by symbolic links
    – noone
    May 15 at 14:08












up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:



  • Truly share a folder with multiple users on a computer

    3 answers



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).







share|improve this question













This question already has an answer here:



  • Truly share a folder with multiple users on a computer

    3 answers



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).





This question already has an answer here:



  • Truly share a folder with multiple users on a computer

    3 answers









share|improve this question











share|improve this question




share|improve this question










asked May 15 at 13:54









spaceprobe

63




63




marked as duplicate by Panther, Terrance, Andrea Lazzarotto, dobey, karel May 15 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.






marked as duplicate by Panther, Terrance, Andrea Lazzarotto, dobey, karel May 15 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.













  • See also joshua14.homelinux.org/blog/?p=1383 . There are several options, SGID and groups are easiest, ACL and (or) bindfs are alternates.
    – Panther
    May 15 at 14:05











  • See askubuntu.com/questions/52584/… and brunogirin.blogspot.com/2010/03/…
    – Panther
    May 15 at 14:08










  • I had achieved this by symbolic links
    – noone
    May 15 at 14:08
















  • See also joshua14.homelinux.org/blog/?p=1383 . There are several options, SGID and groups are easiest, ACL and (or) bindfs are alternates.
    – Panther
    May 15 at 14:05











  • See askubuntu.com/questions/52584/… and brunogirin.blogspot.com/2010/03/…
    – Panther
    May 15 at 14:08










  • I had achieved this by symbolic links
    – noone
    May 15 at 14:08















See also joshua14.homelinux.org/blog/?p=1383 . There are several options, SGID and groups are easiest, ACL and (or) bindfs are alternates.
– Panther
May 15 at 14:05





See also joshua14.homelinux.org/blog/?p=1383 . There are several options, SGID and groups are easiest, ACL and (or) bindfs are alternates.
– Panther
May 15 at 14:05













See askubuntu.com/questions/52584/… and brunogirin.blogspot.com/2010/03/…
– Panther
May 15 at 14:08




See askubuntu.com/questions/52584/… and brunogirin.blogspot.com/2010/03/…
– Panther
May 15 at 14:08












I had achieved this by symbolic links
– noone
May 15 at 14:08




I had achieved this by symbolic links
– noone
May 15 at 14:08










1 Answer
1






active

oldest

votes

















up vote
-1
down vote













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.






share|improve this answer






















  • Brilliant! Many thanks for your response. (Is it OK to thank people for their help here?)
    – spaceprobe
    May 16 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 ;-)
    – RoVo
    May 16 at 7:37


















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
-1
down vote













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.






share|improve this answer






















  • Brilliant! Many thanks for your response. (Is it OK to thank people for their help here?)
    – spaceprobe
    May 16 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 ;-)
    – RoVo
    May 16 at 7:37















up vote
-1
down vote













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.






share|improve this answer






















  • Brilliant! Many thanks for your response. (Is it OK to thank people for their help here?)
    – spaceprobe
    May 16 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 ;-)
    – RoVo
    May 16 at 7:37













up vote
-1
down vote










up vote
-1
down vote









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.






share|improve this answer














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.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 15 at 14:35

























answered May 15 at 14:24









RoVo

4,820932




4,820932











  • Brilliant! Many thanks for your response. (Is it OK to thank people for their help here?)
    – spaceprobe
    May 16 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 ;-)
    – RoVo
    May 16 at 7:37

















  • Brilliant! Many thanks for your response. (Is it OK to thank people for their help here?)
    – spaceprobe
    May 16 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 ;-)
    – RoVo
    May 16 at 7:37
















Brilliant! Many thanks for your response. (Is it OK to thank people for their help here?)
– spaceprobe
May 16 at 7:30




Brilliant! Many thanks for your response. (Is it OK to thank people for their help here?)
– spaceprobe
May 16 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 ;-)
– RoVo
May 16 at 7:37





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 ;-)
– RoVo
May 16 at 7:37



Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491