[plug] root account
Craig Ringer
craig at postnewspapers.com.au
Mon Aug 5 12:20:14 WST 2002
> root:CRYPTED_PW:0:0::/root:/bin/bash
Or even better, if your server isn't from the dark ages (uses MD5 auth
and shadow passwords):
in /etc/passwd:
root:x:0:0::/root:/bin/bash
in /etc/shadow:
root:MD5_PASSWORD:11883:0:99999:7:::
or something like it.
an interesting thing I found out is that root need not be called "root"
and also nothing stops you from having multiple root ("uid 0") accounts
w different logins, default shells, passwords, and homedirs. I expect
it'd break a lot of things in most distros (wherever "root" is used in a
config file or program in place of "uid 0") but you could probably map
"root" to a normal user account and use "admin" or "bob" for the uid 0
account... mess with crackers' heads.
--
Craig Ringer
GPG Key Fingerprint: AF1C ABFE 7E64 E9C8 FC27 C16E D3CE CDC0 0E93 380D
-- if it ain't broke, add features 'till it is. (or:)
while (! broken) { features ++ ; broken = isBroken(features) }
More information about the plug
mailing list