Solved

CVS: rights

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

705 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