Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Account can be logged in without a password
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 5th May 03:13
sherman h.
External User
 
Posts: 1
Default Account can be logged in without a password


I ran the following command trying to get those ids that can be logged on
without a password. I got four ids but when we tested them. Each of them
still require password to logon. Did I do anything wrong on the command?

#Awk -F: '{if($2=="*") print $1 $2}' < /etc/passwd
  Reply With Quote


  sponsored links


2 5th May 03:13
unruh
External User
 
Posts: 1
Default Account can be logged in without a password


"Sherman H." <shung1099@earthlink.net> writes:

]I ran the following command trying to get those ids that can be logged on
]without a password. I got four ids but when we tested them. Each of them
]still require password to logon. Did I do anything wrong on the command?

]#Awk -F: '{if($2=="*") print $1 $2}' < /etc/passwd

Uh, that does NOT mean that they can be logged in without a password.
That would be true only if the second entry were empty, not if it is a *
If it is a * then that entry cannot be logged in at all, since no hashed
password can ever equal a single *.
Note that awk, not Awk, takes a second argument which is the file to
tested, thus the < is unnecessary.
  Reply With Quote
3 5th May 03:13
paul szabo
External User
 
Posts: 1
Default Account can be logged in without a password



Usually a *, + or x in the password field means "use shadow passwords",
i.e. the "real" encrypted password is in /etc/shadow (or somesuch).

--
Paul Szabo - psz@maths.usyd.edu.au http://www.maths.usyd.edu.au:8000/u/psz/
School of Mathematics and Statistics University of Sydney 2006 Australia
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666