27
1
The /etc/passwd is supposed to have a line for every user on the system. Amongst the common username and root there is a bunch of other users. Some examples:
timidity:x:114:127:TiMidity++ MIDI sequencer service:/etc/timidity:/bin/false
liquidsoap:x:115:128::/usr/share/liquidsoap:/bin/false
statd:x:116:65534::/var/lib/nfs:/bin/false
gdm:x:117:131:Gnome Display Manager:/var/lib/gdm:/bin/false
mysql:x:118:133:MySQL Server,,,:/nonexistent:/bin/false
- What's the purpose with all these users?
- How can I login as mysql or gdm? What will the password be?
Thats wrong. Password: An x character indicates that encrypted password is stored in /etc/shadow file. Please note that you need to use the passwd command to computes the hash of a password typed at the CLI or to store/update the hash of the password in /etc/shadow file. source: https://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/
– trietend – 2018-09-25T10:25:47.380I found out that some don't have the
/bin/false
entry but I still can't login into them. An example ->proxy:x:13:13:proxy:/bin:/bin/sh
– Pithikos – 2014-05-06T19:38:00.7901That has to do with a passwordless login - SSH rejects blank passwords (the
:x:
part of the line). You cansu - proxy
for example, but there's no need to. – Nathan C – 2014-05-06T23:34:14.0402:x: isn't a blank password, it means there is no password that will work. That's the field for the password hash and nothing will hash to just the letter x, so no matter what you enter as a password it won't work. Actually, that was true before /etc/shadow; that field in /etc/passwd isn't used any more, but :x: may still indicate that it's not possible to log in. – Randy Orrison – 2014-05-12T19:36:04.157