Newsgroups: fa.info-cvs Date: 2001-09-06 08:46:41 PST
I have my cvs server running on a linux box and am using pserver mode to connect. When I have the CVSROOT/config file set SystemAuth=yes then cvs -d :pserver:user@hostname:/myrepos login works and I can log in using username and the system password for username.
I then used passwd command to change the password to something else and cut and paste the new password field into the CVSROOT/config file
e.g.
username:sB3A79YDX5l4s
I also set SystemAuth=no
And then did a commit on both config and passwd (after adding passwd).
When trying to log on I now get:
"no such user username in CVSROOT/passwd cvs login: authorization failed: server homenet.net rejected access to /myrepos for user username"
If I view the passwd file directly under the CVSROOT directory then I can see username. I have also tried setting passwd file as: username: as one would do for anonymous users, but same result.
At all times I used edit and commit to make changes to file.
I'm trying to set up anonymous access for a repository. I've created a passwd-file with a user anon, a readers file that contains that user (and a newline), and added them to the repository. When I try to access it through
cvs -t -d :pserver:anon@host:/usr/home/cvsadmin/repository login
I am prompted to enter my password, but I only get
Fatal error, aborting. anon: no such user cvs [login aborted]: authorization failed: server swt rejected access
When I change SystemAuth to no, I get:
CVS password: no such user anon in CVSROOT/passwd cvs [login aborted]: authorization failed: server swt rejected access
bash-2.03$ cat passwd anon:/1kgJapGxEYM2:cvsadmin
But the user is there !
Where's the problem ?
Strange enough, in the the $CVSROOT/CVSROOT-directory, there is no real passwd-file, just a passwd,v-file. All the other files have real-files associated with their RCS-relatives.
> And then did a commit on both config and passwd (after adding passwd).
passwd is usually edited in place rather than being maintained with CVS for security reasons. If you're sure you want to maintain it with CVS, you need to add it to CVSROOT/checkoutlist so that it gets updated when committed.