RedHat RHCT (Redhat Certified Technician) RH202 RH202 Question # 22 Topic 3 Discussion

RedHat RHCT (Redhat Certified Technician) RH202 RH202 Question # 22 Topic 3 Discussion

RH202 Exam Topic 3 Question 22 Discussion:
Question #: 22
Topic #: 3

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.


Get Premium RH202 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.