Sunday, May 12, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1342  / 2 Years ago, mon, july 11, 2022, 1:07:22

I'm not sure how to word this. I would like to be able to, remotely, lock down my kids' access either for an amount of time, or have lock/unlock control. Basically, I want to lock out an account temporarily until I unlock it remotely.


More From » remote-access

 Answers
1

A quick-and-dirty solution would be:




  • ssh into the box

  • change the password of the user your kids log in with ("sudo passwd kiddies")

  • issue "sudo poweroff"

  • tell them to finish their homework before they can use the machine again.



There may be better ways to disable a user account without changing the password, such as



sudo usermod --expiredate 1 kiddies


or



sudo passwd -l kiddies


and to unlock:



sudo passwd -u kiddies

[#43595] Tuesday, July 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;