LFCS Essential Commands • Set 2
LFCS Essential Commands Practice Test 2 — 15 questions with explanations. Free, no signup.
A user with uid 1000 tries to read /etc/shadow and gets 'Permission denied'. The user is not in the shadow group. Which of the following actions would allow the user to read the file without changing the file's group or permissions?
Refer to the exhibit. $ ls -l /etc/shadow -rw-r----- 1 root shadow 1234 Jan 15 10:00 /etc/shadow $ id uid=1000(user1) gid=1000(user1) groups=1000(user1) $ cat /etc/shadow cat: /etc/shadow: Permission denied