Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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
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

Your Answer


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