Trouble Logging In as Root
James Gray
james at gray.net.au
Mon Nov 10 19:53:25 UTC 2008
On 09/11/2008, at 7:31 PM, Glenn Holmer wrote:
> On Sun, 2008-11-09 at 20:39 +1100, James Gray wrote:
>> <pedantic>
>> Actually, there *IS* a password for root:
>>
>> #cat /etc/passwd /etc/shadow | grep root
>> root:x:0:0:root:/root:/bin/bash
>> root:*:13755:0:99999:7:::
>
> As long as we're being pedantic... you get the prize for "useless
> use of
> cat" :)
>
> grep root /etc/passwd /etc/shadow
Heheh - indeed :P What about:
awk -F: '/root/ { print "User: " $1 "\tHashed Password: " $2}' /etc/
shadow
...there, that's *much* more efficient use of key strokes. lol
In my defense, I'd typed "cat /etc/passwd etc/shadow" and thought it
would be easier to explain if I stripped it down to root's account
only, so I typed "!! | grep root"...bash short-cuts rule :)
Peace,
James
More information about the ubuntu-users
mailing list