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

How to Install Brother Printer on a Linux machine (Debian, Ubuntu, Mint)

Below is an example of the installation sequence using a known driver URL: $ wget…

Wireshark Overview

SysAdmins, InfoSec, and Network Engineers often use this tool to troubleshot and detect network activities…

How to Check System Temperature on Ubuntu 21.04

# Install sensors sudo apt update -y sudo apt install lm-sensors hddtemp -y # Setup…