Score:0

How do I give one user read/write access to everything another user has access to?

vn flag

I have a situation where I have to work as user alice, and I need to be able to read, write, and edit directories and files created by bob. I know that I could take a specific directory created by bob, and give alice permission to access it with chown or chmod. But sometimes bob will be creating new files and directories himself, and I want to be able to access those as alice easily, without having to do a chown for every time bob creates something new.

How do I give alice access to everything exists or will ever exist in /home/bob/ (assuming only Bob is creating files there)?

user535733 avatar
cn flag
This seems like the classic use case for 'groups'.
AlexOnLinux avatar
ng flag
apart from groups you could use ACL - Access Control Lists https://manpages.ubuntu.com/manpages/precise/en/man5/acl.5.html
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.