Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I currently using a CVS pserver for code management here at work. However, I forgot what my password was. Is there a way I can reset my password? I am pretty sure the password is encrypted in some manner (perhaps MD5?).

I did do a search for similar questions, but was not able to find any. If this is a duplicate, please let me know and I will take it down.

share|improve this question

3 Answers 3

up vote 3 down vote accepted

You cannot retrieve the password; it's encrypted one-way. You can set a new one, however.

The usual way to manage this is to have a checkout of the CVSROOT module, edit the passwd file and cvs commit it.

If nobody has working access to a checkout of CVSROOT, you can always go into the CVSROOT directory inside the CVS repository and edit passwd directly. Matt Simmons's suggestion for generating a properly encrypted password will work for that.

share|improve this answer

@freiheit: This could be a difference between CVS versions, but the "passwd" file is not part of the CVSROOT checkout by default in my company's CVS repository configuration. The file needs to be added in CVSROOT. Then it needs to be added to the "CVSROOT/checkoutlist" file.

Also, one should do a "cvs release -d CVSROOT" after the "cvs commit" so that the "passwd" file is not left in a local work set which may be a security issue.

share|improve this answer

I've always used 'htpasswd' to generate mine.

 htpasswd -nb username password

Paste the hash into the proper field.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.