Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 822  / 3 Years ago, wed, september 8, 2021, 10:50:24

I have a Ubuntu PC.I am the root user and have 3 other users too with normal attributes.



How can I stop one of the user from login temporarily ?



with these factors ,




  • Don't delete the user

  • No attributes change

  • a login rejection & a message to him c
    an be look constructive action.



how can I do that ?
Thank you.


More From » login

 Answers
2

You can change that in usermod. if you want to lock the user xyz then type :



sudo usermod --lock xyz


This will lock the user until you unlock it manually. To unlock type :



sudo usermod --unlock xyz

[#28293] Thursday, September 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowstonnequ

Total Points: 279
Total Questions: 125
Total Answers: 123

Location: Finland
Member since Sun, Dec 5, 2021
2 Years ago
lowstonnequ questions
Wed, Oct 26, 22, 14:40, 2 Years ago
Tue, Feb 28, 23, 01:39, 1 Year ago
Wed, Dec 1, 21, 23:44, 2 Years ago
Thu, Apr 21, 22, 13:13, 2 Years ago
;