Solved

CVS: rights

Posted on 2003-11-18
3
236 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
3 Comments
 
LVL 12

Accepted Solution

by:
paullamhkg earned 200 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now