answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why we have passwd and shadow files?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What files are modified when you add a new user using yast?

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.


Which two critical system configuration files are modified when removing a user such as when using the userdel command?

/etc/login.defs and /etc/passwd


Which UNIX system directory contains configuration files such as the passwd file?

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.


Which command do you use to edit password file in Linux?

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. :)


What are the steps to create a user in Linux by the use of GUI?

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/


Where would data for a user's name be stored in a Linux or UNIX system?

The user's name is stored in /etc/passwd and/or /etc/shadow. The user's data is stored in the /home directory.


What command show is the man page for the etcpasswd file and not the passwd command?

Try "man 5 passwd"


What character is used to separate entries in passwd?

You can see this yourself by looking at the passwd file - it is the colon symbol.


How do you change your password in Unix?

passwd


What is the name of a password file in Linux?

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


What are the release dates for Mystery Case Files Shadow Lake - 2012 VG?

Mystery Case Files Shadow Lake - 2012 VG was released on: USA: 20 November 2012 (internet)


How do you hack as shadow sonic generations witch controller what button on sonic generations on ps3?

mix files with sonic and shadow