ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 194 - XK0-005 discussion

Report
Export

Ann, a security administrator, is performing home directory audits on a Linux server. Ann issues the su Joe command and then issues the Is command. The output displays files that reside in Ann's home directory instead of Joe's. Which of the following represents the command Ann should have issued in order to list Joe's files?

A.
su - Joe
Answers
A.
su - Joe
B.
sudo Joe
Answers
B.
sudo Joe
C.
visudo Joe
Answers
C.
visudo Joe
D.
pkexec joe
Answers
D.
pkexec joe
Suggested answer: A

Explanation:

Thesucommand is used to switch to another user account on Linux systems. The-option makes the shell a login shell, which means that it will read the profile and environment variables of the target user. Without this option, the shell will retain the environment variables of the original user. This can cause confusion when issuing commands that depend on these variables, such asls, which uses the$HOMEvariable to determine the home directory. Therefore, Ann should have issuedsu - Joeto list Joe's files instead of her own.Reference: [How to Use su Command in Linux with Examples]

asked 02/10/2024
C/1094 WOLOGUEDE COTONOU – BENIN STEVE
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first