Posted On March 29, 2019

User Accounts Management

kimconnect 0 comments
blog.KimConnect.com >> Linux >> User Accounts Management
# Method 1
# Disable account while still retain “sudo su userX”
 
# Block a user
chage -E 0 userX
 
# Set account as expired
usermod –expiredate 1 userX
 
# Method 2
# This will render “sudo su userX” inaccessible
# Note: this method doesn’t disable other authentication tokens (e.g. ssh keys)
 
# Lock account
passwd -l userX

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Linux: Installing Docker Community Edition on Centos 8

# Switch into Sudo mode sudo su # Disable the built-in firewall as it will…

How to Install & Configure Pihole on Ubuntu 20.04

1. Installation- Run these commands: # sudo apt-get install gamin -ysudo curl -sSL https://raw.githubusercontent.com/pi-hole/pi-hole/master/automated%20install/basic-install.sh |…

Installing VNC on Centos 5.3

Install VNC server package upon server setup, then run in include GNOME desktop environment: #…