Computing.Net > Forums > Linux > /etc/shadow help

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

Reply to Message Icon

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

[localhost~]$ cat /etc/group | wc
66 66 930

[localhost~]$ cat /etc/shadow | wc
cat: /etc/shadow: Permission denied
0 0 0

Predict the number of lines in the shadow file. Justify.

Thanks a lot guys..



Sponsored Link
Ads by Google

Response Number 1
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
Reply:

Thanks a lot for the help!



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: /etc/shadow help

how to recover /etc/passwd? www.computing.net/answers/linux/how-to-recover-etcpasswd/14801.html

/etc/passwd.org what is it ? www.computing.net/answers/linux/etcpasswdorg-what-is-it-/29891.html

How to encrypt a password in Linux www.computing.net/answers/linux/how-to-encrypt-a-password-in-linux/19055.html