010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 53


Which files are the source of the information in the following output? (Choose two.) uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 1001 (libvirt)

Show Answer
Correct Answer: BC

The files that contain the information presented in the output are /etc/passwd and /etc/group. The /etc/passwd file stores user account information, including the user ID (uid) and group ID (gid). The /etc/group file contains group information, including the group memberships of users. The given output displays a user's ID, primary group ID, and additional group memberships, all of which are stored in these two files.

Discussion

11 comments
Sign in to comment
sasquatchshrimpOptions: BC
Dec 13, 2020

This question is looking for the source of the information, aka files. B and C are correct, as those files both exist and contain that information. /etc/id is not a file, id is a command that pulls from the /etc/group file.

beazzlebub
Jul 26, 2021

It should also be noted that the id command is not found in /etc/ either, it should be somewhere like /usr/bin/id, so /etc/id doesn't exist.

JichzOptions: AB
Aug 18, 2020

A and B are the correct answer. type id on the terminal and type cat /etc/passwd also in the terminal and you'll see it

bren_
Sep 3, 2020

yes but can you find the file named /etc/id in your linux system?

beazzlebub
Jul 26, 2021

No you can't, it doesn't exist in /etc/, it's located in /usr/bin/, just another indication that A is an incorrect choice.

sasquatchshrimp
Dec 13, 2020

Jichz, I totally see your logic. But the id command pulls from the /etc/group file. This question is trying to trick you. If you run cat /etc/id, it does not exist. B and C are correct because those are the two files that you can pull that information from. /etc/id file does not exist, id is a command, not a file. They are asking for files, not commands. I hope that helps clarify some things.

MosestopeOptions: BC
Nov 13, 2020

the answer is B and C. I couldn't find /etc/id in my ubuntu VM

popipiv964Options: BC
Jul 16, 2020

this is id command

h0st
Jan 9, 2021

only B is the correct answer

DS1982
Jun 25, 2021

A is wrong, because id is a command. The answer is about /etc/id , if you try to cat /etc/id it doesn't work

kimalto452
Sep 11, 2021

Which FILES are the source... id is a command

ommar
Nov 16, 2020

whereis id id: /usr/bin/id /usr/share/man/man1/id.1.gz

sminaOptions: BC
May 13, 2021

root@kali:~# cat /etc/id cat: /etc/id: No existe el fichero o el directorio

DanYendler2014
Dec 29, 2021

This question does NOT specifiy for (Choose Two). The answer is B. Only.

Henee
Mar 9, 2022

This question does NOT specify for (Choose Two). The answer is B. Only.