info-cvs
[Top][All Lists]
Advanced

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

Re: Restrict command and 'limited' read only


From: Shubhabrata Sengupta
Subject: Re: Restrict command and 'limited' read only
Date: Tue, 22 May 2001 09:47:28 +0530

I guess you can write a commitinfo script to do the first part. Any script
which is plugged into the commitinfo file has access to the CVS/Entries
file - and when you remove a file the version is prepended with a -  In
pserver mode the CVS server process runs with the uid of the person who is
checking in (I am assuming that each person has a separate uid on the CVS
server) - so your script can check which user owns the file that is being
checked in, see if the file is being removed by munging the CVS/Entries line
for that file and then check with a database of uids (whom you don't want to
remove files) to see if the operation is permitted or not.

The directory where the file is being checked in is also passed to a
commitinfo script as the first argument (the second argument is the file to
be committed) - you can use this information to have groups of users with
commit permissions to specific directories.

Hope this helps

Thanks

Shubho

-----Original Message-----
From: Anita Chacko <address@hidden>
To: address@hidden <address@hidden>
Date: Monday, May 21, 2001 11:28 PM
Subject: Restrict command and 'limited' read only


>Hello
>
>
>How can I restrict some commands to some developers?
>I want to restrict the cvs remove command.How can I do
>that?
>Also I have a project where I want to make some
>directories read only to some people;it would actually
>depend on the module on which a developer works;they
>will only be able to modify the directories belonging
>to their module.But I do not have this kind of
>directory structure in the repository i.e. 1 directory
>for 1 module sort of thing.
>How can I implement this?
>
>Thanks for any suggestions,
>Anita Chacko
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
>_______________________________________________
>Info-cvs mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/info-cvs
>




reply via email to

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