Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
/etc/shadow help
Name: bumboclott Date: April 27, 2005 at 17:14:39 Pacific OS: fedora CPU/Ram: ?
Comment:
Hello,
I'm stuck with this question that is on my final exam review. Can anyone please take some time to help me out?
question...
The following are some result: [localhost~]$ cat /etc/passwd | wc 1303 2595 87398
Name: 3Dave Date: April 28, 2005 at 01:01:47 Pacific
Reply:
1303
0
Response Number 2
Name: cdac Date: April 28, 2005 at 01:24:29 Pacific
Reply:
Almost all of the *NIX systems use /etc/shadhow is used to store the encrypted passwords, and with root user has read permisson on it.
But if you ever get root access to the system you can see that the data contained in this file is begins with
user:encrypted_password
a normal user on a system also gets the su previlage but only temprarily, during the password change using passwd command.
menaing all the users who are created using useradd / adduser command are created in /etc/passwd and a corresponding encrypted password entry is created in /etc/shadow.
So you can safely say that the number of lines in /etc/shadow = line in /etc/passwd ( Unless a users like sshd is added by hand to /etc/passwd. This user is a false user on system)
Hope this helps.
0
Response Number 3
Name: bumboclott Date: April 28, 2005 at 07:13:14 Pacific
Summary: hello, by mistake I deleted all the content of the /etc/passwd. I have red hat 7.2. It uses the /etc/shadow file. I don't know if this could help. Next time I will do a backup of the /etc/passwd file...
Summary: Does anyone know what /etc/passwd.org and /etc/shadow.org are used for? are they just backups of the passwd and shadow file or something ? They were created in 2005 according to the timestamp and co...
Summary: i want to develop a script using bourne shell to create an account management system in linux,i want to know how to encrypt a password. let say echo -n "Plese Enter Password : " read password after ...