The passwd file is public and readable by anyone. For this reason you do not want to have some sensitive information placed there, such as the user's password. Passwords and password aging rules are stored in the shadow file that is only accessible by the root administrator account. This way information that is displayed by commands such as 'finger' can use public information but sensitive information such as the password of a user is not accessible.
Only /etc/passwd and /etc/shadow need to be modified to create a new user, though a new home directory with skeleton configuration files is also created if requested.
/etc/login.defs and /etc/passwd
Configuration files are typically stored in the /etc directory. They can, of course, be anywhere the implementer wishes them to be as long as the process knows where to find them.
Hmm... The recommended method of changing your password on Linux (or Unix for that matter), is to use the passwd command.To change another user's password, switch user to rootand issue the command:# passwd other_user Your question seems to indicate that you really want to directly edit your passwd and shadow files on your Linux distribution. Unless you really, really know what you're doing, I recommend against this.If you do know what you're doing, use the vi (or other editor - vi is the best editor ever made though) editor and directly edit your /etc/passwd and /etc/shadow files.Of course, should you subsequently discover you can no longer access your system, it may behoove you to go back to your Linux/Unix basics and begin all over again. May I suggest, as an excellent starting point, learn all that you can about the world's most wonder editor, the editor vi. :)
There are two commands you will need in order to add users in linux: useradd and passwd. For example, if you want to add a user named tom, you would type sudo useradd tom and to set the password you would type sudo passwd tom The sudo command is necessary if you are not logged in as root. If you are not a member of the sudoers file, you can change to the root account by typing su and then logging in. Remember that there are important files that will be created or changed when you add a user. These are /etc/passwd /etc/shadow /etc/default/useradd /home/tom /etc/
The user's name is stored in /etc/passwd and/or /etc/shadow. The user's data is stored in the /home directory.
Try "man 5 passwd"
You can see this yourself by looking at the passwd file - it is the colon symbol.
passwd
User account information can be found inside /etc/passwd file; the password field is the second one using ":" as the field delimiter.In case the password there is a lower-case "x", then the encrypted passwords is stored inside /etc/shadowfile.For more information look at the output of these commands:* man 5 passwd * man 5 shadow
Mystery Case Files Shadow Lake - 2012 VG was released on: USA: 20 November 2012 (internet)
mix files with sonic and shadow