Score:0

Have two users collaborate in a directory

cn flag

Can anyone help me to solve this.its simple.but i have full of doubts.

Create a directory on /mnt/data. 2 users there, Alice and Bob, and both of them are in group admins. Both of the users collaboratively work on this directory, and also file and directory created in this directory should automatically belongs to group admins. All members of the group have rw access. Can anyone explain it?

waltinator avatar
it flag
This (AskUbuntu) isn't a "do my homework" site.
in flag
Git or some other source control system is the only solution. Two (or more) people working on the same files with no means to audit? That’s a fail in 2013, let alone the current year. Systems need to be auditable. This doesn’t mean “being able to blame”, but “being able to understand”
Score:1
cn flag

Your umask needs to be set so files by default have permissions for groups to read, write and execute. The default umask on Ubuntu, 0002 is adequate.

You then set the setgid bit so files and directories that are created in the shared directory will automatically be assigned the common group (admins in your example).

  1. Make sure the shared directory is owned by the group admin
  2. Set the setgid bit: chmod g+s /mnt/data
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.