Lot of open source and commercial projects are working on the version control system like SVN,CVS.These days i was tried to configure CVS in my company local server(Linux-Fedora Core).For that purpose, i was searched lot of article about the CVS configuration but couldn't find any good article about "How to add user to SVN" but finally i did it completely.I write down it because it may be helpful to others.
Step 1.
check your CVS folder
#echo $CVSROOT
step 2.
It is possible to have cvs users which are not part of the OS (no local users). This is actually probably wanted too from the security point of view. Simply add a file named passwd (in the CVSROOT directory) containing the users login and password in the crypt format. This is can be done with the apache htpasswd tool.
Note: This passwd file is the only file which has to be edited directly in the CVSROOT directory. Also it won't be checked out. More info with htpasswd --help
# htpasswd -cb passwd prabath password1 # -c creates the file
# htpasswd -b passwd chandima password2
Step 3.
First check who is initiate you're SVN server.Ex:- cvs
Now add :cvs at the end of each line to tell the cvs server to change the user to cvs (or whatever your cvs server is running under). It looks like this:
# cat passwd
prabath:xsFjhU22u8Fuo:cvs
chandima:vnefJOsnnvToM:cvs
setp4.
change passwd file ownership to the svn user.
ex:-
chown cvs /usr/local/cvsroot
step5.
Test the login as normal user (for example here me)
# cvs -d :pserver:prabath@192.168.50.254:/usr/local/cvs login
Logging in to :pserver:prabath@192.168.50.254:2401/usr/local/cvs
CVS password:
පලමු අදියර
Step 1.
check your CVS folder
#echo $CVSROOT
step 2.
It is possible to have cvs users which are not part of the OS (no local users). This is actually probably wanted too from the security point of view. Simply add a file named passwd (in the CVSROOT directory) containing the users login and password in the crypt format. This is can be done with the apache htpasswd tool.
Note: This passwd file is the only file which has to be edited directly in the CVSROOT directory. Also it won't be checked out. More info with htpasswd --help
# htpasswd -cb passwd prabath password1 # -c creates the file
# htpasswd -b passwd chandima password2
Step 3.
First check who is initiate you're SVN server.Ex:- cvs
Now add :cvs at the end of each line to tell the cvs server to change the user to cvs (or whatever your cvs server is running under). It looks like this:
# cat passwd
prabath:xsFjhU22u8Fuo:cvs
chandima:vnefJOsnnvToM:cvs
setp4.
change passwd file ownership to the svn user.
ex:-
chown cvs /usr/local/cvsroot
step5.
Test the login as normal user (for example here me)
# cvs -d :pserver:prabath@192.168.50.254:/usr/local/cvs login
Logging in to :pserver:prabath@192.168.50.254:2401/usr/local/cvs
CVS password:
පලමු අදියර
Comments