RedHat RHCT (Redhat Certified Technician) RH202 RH202 Question # 39 Topic 4 Discussion

RedHat RHCT (Redhat Certified Technician) RH202 RH202 Question # 39 Topic 4 Discussion

RH202 Exam Topic 4 Question 39 Discussion:
Question #: 39
Topic #: 4

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.