Solved

CVS: rights

Posted on 2003-11-18
3
237 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bash script question (chmod) 10 56
Sendmail STARTTLS error 37 84
mcrypt_create_iv() is deprecated 4 76
Setting up static IP - Ubuntu server 16.04 12 31
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…
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 how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

920 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

15 Experts available now in Live!

Get 1:1 Help Now