LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-13-2005, 11:50 AM   #1
CaptainRandom
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Rep: Reputation: 0
Question CVS: Can I restrict the "cvs remove" to specific users?


Hello all,

I'm an admin to a CVS server, but am still trying to pick up on some of the specifics.

Earlier this week, one in our group accidentally deleted several files to the attic. I checked out an earlier version and re-committed them, but I'd like to keep this from happening if possible.

Can I restrict the ability to use the "cvs remove" command to only specific users?

I'm positive this will happen again, and probably soon.
Any suggestions are welcome.

Thanks.
 
Old 01-13-2005, 03:06 PM   #2
homestead1000
Member
 
Registered: Jul 2003
Location: San Diego, CA USA
Distribution: RH 7x,8x,9x, RHE 3, Fedora Core1
Posts: 38

Rep: Reputation: 15
the simple way is specifiying readers and writers.. to be more specific?... I'd have to read up but I dont think you can. I could be wrong though.
 
Old 01-13-2005, 03:30 PM   #3
CaptainRandom
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Believe me, I'd like to specify just-read or read/write access, but all of the current users need to be able to write to this repository, so I'm kind of stuck there.

I was hoping I could edit the commitinfo file, or one of the other CVSROOT files, so that it could check which user was trying to do a commit, and then allow/restrict them based on their user name.

Does make sense?
Thanks.
 
Old 01-13-2005, 03:46 PM   #4
homestead1000
Member
 
Registered: Jul 2003
Location: San Diego, CA USA
Distribution: RH 7x,8x,9x, RHE 3, Fedora Core1
Posts: 38

Rep: Reputation: 15
I'm not sure how you've got your setup but this is what im doing and our users are pretty happy. They just have to communicate well.

in loginfo i have this:

ALL /bin/mail -s '$USER modified REPOSITORY %{sv}' CVSUSERSMAILGROUP@domain.com

since we use a managed passwd file for each repository they all get an email everytime someone commits a file.

i suppose if you can find the correct CVSROOT/file that could at least inform the masses when someone does this might do. Peer pressure keeps peeps from doing stupid stuff. LOL

I was reading something a little bit ago about someone who was running a script through the commit function but there were no links to what he had done and was very vague.
 
Old 01-13-2005, 03:53 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
yea you can specify readers and writers with files
by just making files CVSROOT/readers CVSROOT/writers and putting the cvs user names in there

but if you want a writer to not be able to remove a file i think the sticky bit on the directory the files are in might do what you want
chmod a+wt
i think if you then setuid on that directory to you all the files that get created only you can delete

so then even if someone has write access to the folder only the files owner can delete it

that's kind of what sticky was dsigned to do -- i might have some of the details confused however-- i usually do
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running CVS Server on Fedora Core 4 with pserver as "cvs" user rupak Fedora 2 09-17-2005 02:06 PM
Running CVS Server with pserver as "cvs" user on Fedora Core 4 rupak Linux - Software 2 09-17-2005 12:10 PM
wincvs to cvs via pserver "encountered a problem" during login julianop Linux - Software 0 02-17-2005 09:09 PM
cvs wine. Unable to download. Error "cvs: command not found" gonus Debian 5 08-03-2004 07:13 PM
WineX CVS "IKernel.exe could not be launched" ZaphodBeeblebro Linux - Software 1 10-20-2002 10:45 AM


All times are GMT -5. The time now is 07:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration