?
Solved

CVS: rights

Posted on 2003-11-18
3
Medium Priority
?
247 Views
Last Modified: 2013-12-15
I am configuring CVS server and got a problem with users/groups/rights:

Imagine i want to create two groups of accounts:

Group 1:  supervisor
Group 2: smith, John, Mike

and say people in Group 2 can access(read and write) file my_file.c
also supervisor is permitted to access this file, however, after supervisor
accessed this file, the owner of this file was changed to be "supervisor" and
people in Group 2 can no longer access it !!!

Anyone knows what is the usual method to overcome this problem?

Many thanks!
0
Comment
Question by:codenamecharlie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
paullamhkg earned 800 total points
ID: 9784976
I think you need to add the group 2 into the supervisor so that the same group member can access the file.

eg. said smith, John, Mike belonged to group2, and supervisor will belonged to group1 and group2, and your file(s)/directory for group2 have to set the permission to rxwrwx--- (770), so now when supervisor change anything in the file(s), the file(s) will become the supervisor but the file(s) also belonged to group2, due to the file(s) permission is 770, that's mean all members belonged to group2 have the rwx permission.

the way to add supervisor into group2 :

if supervisor already exist, usermod -G group2 supervisor, this will add supervisor into group2.
if supervisor not yet create, useradd -G group1,group2 supervisor, for this supervisor will belonged 2 groups, and the major group is group1.

but remember when supervisor edit any files belonged to group2, the files owner will become supervisor, only the group of the file will not change.

eg. a file called test, at the begining the test is smith:group2, after supervisor edit/change and save the test, it will become supervisor:group2.
0

Featured Post

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month15 days, 16 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question