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

OpenProject Installation on CentOS 7

Docker Implementation:   # Create database on existing SQL Server (not being used) #CREATE DATABASE…

Fix Ubuntu / Lubuntu ‘Hypernation Button Does Nothing’ Problem

# Step 0: find swap # Option A: root@kimlinux:/home/kim# cat /proc/swaps Filename Type Size Used…

Linux DNS Networking

DNS client on Linux: /etc/resolv.conf specifies the nameservers for resolver lookups. The order of lookup…
Other project: DragonCoin.com