0

We have some EDA software that is used by many people. As a team, we want to be able to edit and work on the same files (binary). Say, I create an electrical schematic, I save it, I simulate it. Apart from the schematic, the software creates a bunch of other files that go along the original schematic. Now how do I make the result of my work available to other users for editing? Surely I can manually use "chmod", chown" etc. but that is not a solution. It has be automatic. I created a folder under the root directory called /Projects. I gave it 777 permissions. Ok, everyone can write in that folder, but the files created by the software get assigned attributes of the user that runs the program. So, if I run the schematic program, and I save that schematic it gets saved with attributes like:

-rw-r--r--  1 peter peter 170M Aug  4 10:22  zoom_amd64.sch

And if John creates a schematic, it gets saved with attributes like:

-rw-r--r--  1 john john 30M Aug  4 12:22  zoom2_amd64.sch

So I cannot edit John's files, and John cannot edit my files even though, we both have r/w access to the /Project folder.

Is there a way to config that folder so people, who belong to a certain group, get to edit all the files in that folder? Users outside of the certain group shall not be able to read or write files in /Projects directory.

1 Answers1

0

Create a group and add peter and john to that group. Then make the directory that you want them both to store files to x70 (so whatever on user, read+write+execute for group and nothing for others.

Using your admin account create a group with (I used users as a name) and add users to group:

sudo groupadd users
sudo usermod -a -G users peter
sudo usermod -a -G users john

Then setup the directory.

sudo chmod -R 770 /Project
sudo chgrp users /Project
  • executable for owner, users and set it for folder and anything already inside it.

If you create new users use

sudo useradd -g users wim

and it will create wim and add it to users

Rinzwind
  • 309,379