Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 21 of 33
Free Preview · 33 of 108 · questions 1–33 of 108 are free. Sign up free to sync your progress across devices.
Hotspot Scenario
Select the appropriate option to complete the statement. Click Check Answer below to see the marked solution.
Hotspot Solution:
adduser user1 -u 601 passwd user1 prompts for password enter redhat vim /etc/passwd arrow key down until you see user1:x:601:1003::home/user1:/bin/bash press i change it to... user1:x:601:1003::/home/user1:/sbin/nologin Press Esc Type :wq Press Enter to double check grep user1 /etc/passwd output: user1:x:601:1003::/home/user1:/sbin/nologin test to make sure account is unable to login su - user1 expected output: "This account is currently not available."
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
adduser user1 -u 601 passwd user1 *prompts for password* enter redhat vim /etc/passwd arrow key down until you see user1:x:601:1003::home/user1:/bin/bash press i change it to... user1:x:601:1003::/home/user1:/sbin/nologin Press Esc Type :wq Press Enter to double check grep user1 /etc/passwd output: user1:x:601:1003::/home/user1:/sbin/nologin test to make sure account is unable to login su - user1 expected output: "This account is currently not available."
In RHEL 9 standart UID start from 1000. You can't create user with UID 601
U R right but you can still create the account and you just get the following warning "useradd warning: user1's uid 601 outside of the UID_MIN 1000 and UID_MAX 60000 range" you can also overcome by customising your login.defs