Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bigdisc65

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: Nov 21, 2024
Questions: 140
RH202 pdf

RH202 PDF

$28  $80
RH202 Engine

RH202 Testing Engine

$33.25  $95
RH202 PDF + Engine

RH202 PDF + Testing Engine

$45.5  $130