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

Dynamics NFS Provisioning in Kubernetes Cluster

Step 1: Creating NFS Server A. Create NFS Share on File ServerThere are many ways…

BASH: Basic SED Training

Do you know Sed? If you ask 'who is he', then this little article if…

Installing Red5 on CentOS 5

I mostly work with Debian Etch 4 but the process would pretty much be the…