12-19-2013
Reading etc/passwd file
I am new to UNIX and I am trying to read an etc/passwd file. I have 2 questions.
1) Looking at several of the User IDs, there are appears to be alphanumeric characters under the password column, for Root and Oracle. Does this mean that the password is not encrypted?
2) Should I be concerned that the "nobody" ID has a UID of -2? Also, should I have concerns that several User IDs have UID's set to 0 along with root.
3) Also, is there any risk associated with these settings?
Last edited by McMeatface; 12-19-2013 at 01:03 AM..
10 More Discussions You Might Find Interesting
1. Cybersecurity
hi
Does anyone anyone know what the last line of a unix user passwd file signifes?
Mine shows "+:::::"
best (4 Replies)
Discussion started by: s_mad010
4 Replies
2. Shell Programming and Scripting
Hi all,
As all of us know that in /etc/passwd file the first field correspond to username
could any one tell me what is bin , damoen etc in the first field, and r they in
user field , what is nologin in the last column ?
root:x:0:0:root:/root:/bin/bash ... (4 Replies)
Discussion started by: useless79
4 Replies
3. UNIX for Dummies Questions & Answers
i am using apache2.0, and i used this command to create username/passwd:
./htpasswd -b passwd.file username password
is it away to translate password back to plaintext ?
for example, passwd.file contains:
username:HnennjvqsGaQs
i want to translate back to:
username:password (1 Reply)
Discussion started by: tjmannonline
1 Replies
4. Solaris
Hi friends, i need a favour from u all i made a small change in home pc it is INTEL i had change /etc/passwd i just change the shell for the root instead of sh i kept bash and i had taken back up of the file /etc/passwd. now the problem is i am not able to log in as a root i got a error NO Shell... (10 Replies)
Discussion started by: kurva
10 Replies
5. Shell Programming and Scripting
Hi Gurus,
I have one requirment..
I have written a script and it asks a registry passwd while performing some clearcase command. Now we are giving it manually. It's for one time run. We want to perform this for multiple times on multiple files throguh for loop.. means we need to pass the same... (3 Replies)
Discussion started by: raghu.iv85
3 Replies
6. Solaris
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
7. AIX
Hello All,
Can anyone post the default /etc/passwd file for AIX?
I would like to compare with an existing machine of mine and want to identify what are the default users that are created when the O/S is installed.
In other words I would like to see the system users in AIX. Not the ones created... (1 Reply)
Discussion started by: lovesaikrishna
1 Replies
8. UNIX for Dummies Questions & Answers
Not an unix expert, I read a few pages on the web about passwd files, but I didn't find the answers I need about the last 8 lines of the passwd file I'm taking a look at.
I'm assuming their shortcuts to another file that may have the actual usernames of users on the system.
Please, any help... (1 Reply)
Discussion started by: fusion31
1 Replies
9. AIX
Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies
10. Solaris
Hello,
I'm trying to recover my /etc/passwd file, but I can't make it work. Im doing the following:
1. Booting from cd-rom:
2. Mounting hard disk drive
3. Copying my passwd and shadow files to /a/etc/
4. Unmounting Hard disk:
5. Rebooting
6. Stopping my OS from booting ( by pressing... (11 Replies)
Discussion started by: alvaradogunner
11 Replies
pwconv(1M) System Administration Commands pwconv(1M)
NAME
pwconv - installs and updates /etc/shadow with information from /etc/passwd
SYNOPSIS
pwconv
DESCRIPTION
The pwconv command creates and updates /etc/shadow with information from /etc/passwd.
pwconv relies on a special value of 'x' in the password field of /etc/passwd. This value of 'x' indicates that the password for the user is
already in /etc/shadow and should not be modified.
If the /etc/shadow file does not exist, this command will create /etc/shadow with information from /etc/passwd. The command populates
/etc/shadow with the user's login name, password, and password aging information. If password aging information does not exist in
/etc/passwd for a given user, none will be added to /etc/shadow. However, the last changed information will always be updated.
If the /etc/shadow file does exist, the following tasks will be performed:
Entries that are in the /etc/passwd file and not in the /etc/shadow file will be added to the /etc/shadow file.
Entries that are in the /etc/shadow file and not in the /etc/passwd file will be removed from /etc/shadow.
Password attributes (for example, password and aging information) that exist in an /etc/passwd entry will be moved to the corre-
sponding entry in /etc/shadow.
The pwconv command can only be used by the super-user.
FILES
/etc/opasswd
/etc/oshadow
/etc/passwd
/etc/shadow
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
passwd(1), passmgmt(1M), usermod(1M), passwd(4), attributes(5)
DIAGNOSTICS
pwconv exits with one of the following values:
0 SUCCESS.
1 Permission denied.
2 Invalid command syntax.
3 Unexpected failure. Conversion not done.
4 Unexpected failure. Password file(s) missing.
5 Password file(s) busy. Try again later.
6 Bad entry in /etc/shadow file.
SunOS 5.10 9 Mar 1993 pwconv(1M)