cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 353 Views

Lock User Account

Write the command that will "fully" lock a user account.  The user
must not must not be able to login to the account by any authentication
means!!!

Trevor "Red Hat Evangelist" Chandler
Labels (3)
4 Replies
Maximus_el
Mission Specialist
Mission Specialist
  • 327 Views

hi
i new here, i hope me contribution adds value..


usualy,  his password by
# usermod -L usrname

since  "must not be able to login to the account by any authentication
means!!!" then id disable his shell by:
# usermod -s /sbin/nologin username
now not even loging with ssh will work

this is not an answer, this is a try, im still studing RHCSA

waiting for real answers and thank you.

________________________________________________________
Keep fighting, peacefully!
Chetan_Tiwary_
Community Manager
Community Manager
  • 311 Views

Hey @Maximus_el you are doing great!

Here is the method what you suggest :

Chetan_Tiwary__0-1728752228134.png

and here is an alternative :

Chetan_Tiwary__1-1728752270643.png

Maximus_el
Mission Specialist
Mission Specialist
  • 303 Views

@Chetan_Tiwary_you are valuable, thank you.

________________________________________________________
Keep fighting, peacefully!
Trevor
Starfighter Starfighter
Starfighter
  • 237 Views

Maximus, be assured that any contribution you make will add value - whether
your input is correct or incorrect.  And please, don't ever be concerned or 
afraid of being incorrect.  This always affords you, and the rest of the community,
to advance our knowledge - and that's a primary objective for all of us!!!

Thanks for making the effort to answer the question.  The worse thing that's 
going to happen to you being out here is that you're going to learn something - 
what you know, and what you don't know.

Here's some great advice:  Always listen to Chetan_Tiwary!!!!!!!!!!!

Trevor "Red Hat Evangelist" Chandler
Join the discussion
You must log in to join this conversation.