Create User With Full Name in Linux

If you want to add a user along with his/her full name. Here is how to do it.

useradd -s /sbin/nologin -c “Younten Jamtsho” younten

With the above command, I am creating a user younten, who’s full name is Younten Jamtsho. Addition to that, I am assigning nologin shell to the user younten so that he cannot log in to ssh.

Now that you have created the user, use finger command to see the details of the user.

finger younten

Leave Your Response

* Name, Email, Comment are Required

Follow Me

Weather

Thimphu: -9° C

Condition: Clear

Sunrise: 8:34 am

Sunset: 7:59 pm

Time: 08:16:31 am

Archives

Users: 5 Guests