ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 310 - XK0-005 discussion

Report
Export

A user (userA) has reported issues while logging in to the system. The following output has been provided:

bash

Could not chdir to home directory /home/userA: Permission denied

-bash: /home/userA/.bash_profile: Permission denied

# cat /etc/passwd | grep userA

userA:x:1234:3400:userA account:/home/userA/:/bin/bash

# passwd -S userA

userA PS 2022-10-17 1 99999 0 (Password set. SHA512 crypt.)

# groups userA

admin dev usergrp

# ls -lth /home/

drwx------ 7 root admin 9 Jan 17 2019 userA

drwxr-xr-x 4 userC app 9 Jan 23 2020 userC

Which of the following describes the issue userA is having?

A.

The password for userA is not set

Answers
A.

The password for userA is not set

B.

The group for userA is not assigned correctly

Answers
B.

The group for userA is not assigned correctly

C.

The account password for userA has expired

Answers
C.

The account password for userA has expired

D.

The assigned home directory is not owned by userA

Answers
D.

The assigned home directory is not owned by userA

Suggested answer: D

Explanation:

The issue occurs because the home directory /home/userA is owned by root, not by userA, as seen from the ls -lth /home output. In Linux, the user must have ownership of their home directory to log in and access their files properly. To fix this, the administrator must change ownership using chown userA:userA /home/userA.

asked 09/10/2024
Exam Prepping
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first