(Linux DCOM 142 on lab11) (https://i.sstatic.net/pWtFs.jpg)
- Please add a proper question to the body of the text, and don't post images of text. (I don't have the best eyesight and the photo is of poor quality).Kusalananda– Kusalananda ♦2018-11-28 11:07:47 +00:00Commented Nov 28, 2018 at 11:07
- Furthermore, photos are impossible to read in the occasions I am in the/for users using the mobile applicationRui F Ribeiro– Rui F Ribeiro2018-11-28 11:30:18 +00:00Commented Nov 28, 2018 at 11:30
- Ironically, the answers at the duplicate question and here do not address what the college coursework is getting at.JdeBP– JdeBP2018-11-28 11:41:32 +00:00Commented Nov 28, 2018 at 11:41
Add a comment |
1 Answer
getent will check for data in /etc/passwd and other name services. These services can be (e.g.) LDAP, DNS, etc. When passing the passwd option, it will get data from the passwd database.
/etc/passwd will contain only local users for the current system : it could be considered here as the passwd database.
Apparently you are a studying, so you can read further the manpages of getent, nsswitch.conf.