2014-05-21 07:01 AEST by Glen Starrett - A user can get an error on commit "you are unknown to this system" if:
* The CVS user is in the CVSROOT/passwd file and aliased to root
A similar error "cannot commit files as 'root'" shows up if you are trying to
commit as root or any user with UID 0.
Setup to reproduce:
* Create a repo on a Linux machine with a module 'a' and file 'a.txt'
* Have a user 'admin' added to CVSROOT/admin file
* Run the following commands (assuming the server is running on IP 192.168.1.58):
>cvs -d :pserver:admin@192.168.1.58:/myrepo login
>cvs -d :pserver:admin@192.168.1.58:/myrepo passwd -a -r root r3
Adding user r3@192.168.1.58
... set password ...
a>cvs -d :pserver:r3@192.168.1.58:/myrepo login
Logging in to :pserver:r3@192.168.1.58:2401:/myrepo
CVS Password:
a>cvs -d :pserver:r3@192.168.1.58:/myrepo co -d r3-a a
cvsnt server: Updating r3-a
U r3-a/a.txt
a>cd r3-a
a\r3-a>echo fubar or not >> a.txt
a\r3-a>cvs ci -m "Can alias to root ci?"
cvs commit: Examining .
cvsnt [server aborted]: you are unknown to this system
You can also get the other version of this error "cannot commit files as 'root'"
by trying to commit as root or another user with UID 0. |