Solved

CVS: rights

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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 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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

792 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