LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-15-2023, 03:34 PM   #1
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Rep: Reputation: Disabled
RCS access list


I have an old rhel 6 server from years ago, set up before my time.
It is using RCS, for file revisions. I've looked at some man pages, but I haven't found how to change the access list for RCS. I am making a new server, to replace this old 1, and want to use RCS.
I'm sure most of it takes little effort, but I just need to know how to change users on the access list.
Thanks!
 
Old 03-16-2023, 08:02 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I have no personal experience with this, but perhaps this article from Red Hat might help: https://access.redhat.com/documentat...ystem-settings
 
Old 03-17-2023, 09:10 AM   #3
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
Unfortunately, not the same thing. Would be nice, if it were. I might just have to kick Redhat's chair on this.
 
Old 03-17-2023, 03:14 PM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,792

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
RCS is old, older than RHEL 6.
AFAIR the file permissions and ownership matter.
And I never fully understood its locking philosophy.
 
Old 03-18-2023, 05:53 PM   #5
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
I've done RCS (revision control system) for about 30 years. The access list is per user, per file. I've never had a need for it. I usually set it up so normal users can rcs and that way you can see who is doing updates instead say root for everything.

I tested on Ubuntu, seems -a is broken anyway. I restricted it and it allows another user (provided write perms) to co/ci/rcs without a problem.
'
 
1 members found this post helpful.
Old 03-20-2023, 11:15 AM   #6
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
Dang, no idea RCS was that old. I mean, I'm not surprised it's old, but didn't think over 30 years.

So, I am figuring it out. I think my last hurdle with it, is in the name,v file it creates in the RCS directory. How do I edit that, to limit who can co/ci? I know I need to add names to the "access" line, but what is the best way to edit this file?
 
Old 03-20-2023, 12:29 PM   #7
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
I'd test that, my testing indicates that it doesn't work right. The only limits are if you can read the RCS file and if you can write the file in the target directory. I tried this on Ubuntu.

But you use the "rcs -a<USERNAME> file" to allow access for USERNAME. I found it doesn't really work, but someone might be able to convince me that it does. I did not find any example of anyone using this option.

It would be better to protect it by setfacl/getfacl. That way, you can protect the RCS directory per user instead of a Unix group.
 
Old 03-20-2023, 03:14 PM   #8
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,802

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by elgrandeperro View Post
It would be better to protect it by setfacl/getfacl. That way, you can protect the RCS directory per user instead of a Unix group.
Or by group if you assign the authorized users who can make edits to that group. (Easier if the number of editors is sizable.)
 
Old 03-20-2023, 03:36 PM   #9
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
I did find how to add allowed users to the ,v file. But this may be 1 of the areas where it no longer works right. It accepts my user, but gives a permission denied error when trying to co. RCS might be dead when it comes to rhel 8. Even though, Redhat offers the package.
 
Old 03-20-2023, 09:56 PM   #10
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
Hmmm. It does seem to work. I think root overrides it.

It says:

Code:
$ /usr/bin/rcs -l group
RCS file: RCS/group,v
rcs: RCS/group,v: user ZZZZ not on the access list
 
Old 03-21-2023, 11:47 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
don't forget usually root has no extra rights in databases, sometimes it is just locked out (to avoid running tools as root).
Personally I would try to transfer this RCS into git, but obviously it is just an idea from my side.
 
Old 03-21-2023, 09:12 PM   #12
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I was wondering when someone like @pan64 would say it: "this is obviously a better situation for 'git.'"

Today, much better version-control options exist (namely and specifically: "git"), than when RCS was originally architected. I therefore suggest that the "RCS" strategy should now be "sunsetted."

Last edited by sundialsvcs; 03-21-2023 at 09:15 PM.
 
Old 03-22-2023, 10:41 AM   #13
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
It does seem a new control would be in order. Seeing as how RCS is decades old. I'll check into git.
 
Old 03-22-2023, 11:57 AM   #14
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
"RCS ... CVS ..." They were good in their day, but since then they've been fairly superseded.
 
Old 03-22-2023, 01:34 PM   #15
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
I (we) still use it for local changes and cm. Its quick and easy. We use git for other broad distributed things.
 
  


Reply



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
/etc/rc0.d-rcS.d ?? Wurstkoffer Debian 3 04-17-2004 06:36 PM
RCS for system maintenance Dark_Helmet Linux - Software 1 07-26-2003 07:07 PM
RCS and CVS which to use for configs? Dark_Helmet Linux - Software 0 06-29-2003 12:53 AM
trying to get lilo to autoload in my rcS script Frustin Linux - General 0 04-04-2003 03:46 AM
etc/rcS.d/S100localnet intervention : command not found dj_relentless Linux From Scratch 4 02-04-2002 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration