info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with admin privileges


From: Mark D. Baushke
Subject: Re: Problem with admin privileges
Date: Sat, 02 Jul 2005 14:27:23 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Julian Opificius <address@hidden> writes:

> The only problem now is that if a cvsadmin user introduces a directory 
> into the cvs repository using "add", the directory is owned by him, not 
> by the global cvs user, and nobody else can check into/out of that 
> directory.
> 
> How do I automatically force new directories created by the cvs server 
> to be owned by the global cvs user, rather than the effective user? 

This is the wrong question.

> Maybe there is a Linux feature - something akin to setuid - that 
> operates on the top level repository directory?

You could have the directories all be in a 'cvs' group and use 

  find $CVSROOT -type d -exec chgrp cvs g+s {} \;
  find $CVSROOT -type d -exec chmod g+s {} \;

The cvs user could belong to this group 'cvs' as well as your admin
users. New files and directories created will inherit the groupid of the
parent directory. A crontab job could go thru and change the ownership
of the files and directories in the tree to that of the 'cvs' user on a
periodic basis as additional cleanup if desired.

        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFCxwa73x41pRYZE/gRAhQ3AJ9W5T0ZFGxZhOLYa3WqSNIZAgOCmACgzSMz
adob8OzUA267AGIbaEy8mK4=
=q9hb
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]