Here is how to disable user accounts (password and ssh login) in #Linux to prevent login via GUI, SSH, or any other method. See https://www.cyberciti.biz/faq/linux-delete-user-password/ for more info.
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Saturday, 14-Oct-2023 12:23:11 JST nixCraft 🐧 -
Darren Moffat (darrenmoffat@mastodon.social)'s status on Saturday, 14-Oct-2023 12:23:11 JST Darren Moffat @nixCraft Solaris equivalents, just because:
pkill -9 -u <usrname>
passwd -l <usrname>
usermod -s /bin/false <usrname>On Solaris -d to passed would leave with an empty password so use -l instead.
-
mercurial idiot (writeblankspace@fosstodon.org)'s status on Saturday, 14-Oct-2023 14:50:39 JST mercurial idiot @nixCraft wait, why would anyone do that?
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Saturday, 14-Oct-2023 14:50:39 JST nixCraft 🐧 @writeblankspace If you need to disable login access for a former employee but keep their data in the $HOME directory, follow these steps.
-