Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am in a system administration course in college in which I have my own FreeBSD server set up, so I obviously can login as the root user. I need to figure out where the actual passwords for users are stored, where they are not encrypted, if they are even stored in such a way. I know that all user account information as well as process information is stored in the /etc/passwd directory but there are only "*" in the password fields. I just need to know the directory and file where they are stored.

share|improve this question

migrated from stackoverflow.com Oct 25 '11 at 12:58

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 2 down vote accepted

/etc/master.passwd is where the encrypted passwords are stored. The unencrypted passwords are not stored anywhere, as that would be a major security risk.

share|improve this answer

It's the master.passwd file: http://www.freebsdwiki.net/index.php/Etc/master.passwd

But you should use vipw or chpass to edit the file.

share|improve this answer

Your Answer

 
discard

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