New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

Free RH202 RedHat Updates

Page: 5 / 5
Question 20

Create the user named eric and deny to interactive login.

Answer and Explanation:

  • useradd eric
  • passwd eric
  • vi /etc/passwd
  • eric:x:505:505::/home/eric:/sbin/nologin

Which shell or program should start at login time is specified in /etc/passwd file. By default Redhat Enterprise Linux assigns the /bin/bash shell to the users. To deny the interactive login, you should write /sbin/nologin or /bin/false instead of login shell.

Options:

Question 21

Add a user named user4 and make primarily belongs to training group. As well account should expire on 30 days from today.

Answer and Explanation:

  • useradd username
  • passwd username
  • usermod -e “date”

example: usermod -e “12 Feb 2006” user4

Verify: chage –l user4

Options:

Page: 5 / 5
Exam Code: RH202
Exam Name: RHCT (Redhat Certified Technician) RH202
Last Update: Dec 22, 2024
Questions: 140
RH202 pdf

RH202 PDF

$25.5  $84.99
RH202 Engine

RH202 Testing Engine

$28.5  $94.99
RH202 PDF + Engine

RH202 PDF + Testing Engine

$40.5  $134.99