Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

command to lock a user

sudo usermod -L username

#to disable all login methods
sudo usermod -L -e 1 username

#to unlock a user
sudo usermod -U USER

#to verify
sudo chage -l linuxize
Comment

PREVIOUS NEXT
Code Example
Shell :: bash create file specific size 
Shell :: git diff two commits one file 
Shell :: brew uninstall 
Shell :: Git: push to create project 
Shell :: bash cut delimiter last field 
Shell :: resolve merge conflicts git 
Shell :: homebrew for windows 
Shell :: powershell change directory 
Shell :: remove git proxy 
Shell :: download subfolder from github 
Shell :: homebrew redis install 
Shell :: wallpaper engine linux 
Shell :: how to search string in subdirectory in unix 
Shell :: install rabbitmq docker image 
Shell :: How to push to a new repositiory in github 
Shell :: remove .idea folder from git 
Shell :: git merge squash 
Shell :: add date to git reflog 
Shell :: ubuntu wifi with no internet 
Shell :: create scheduled task via powershell scheduled reboot 
Shell :: git discard unstaged files 
Shell :: how to install a library in anaconda 
Shell :: pcsx2 
Shell :: tree process linux commnad 
Shell :: how to check if I have sudo permission 
Shell :: rename branch name brfore push 
Shell :: how to use xampp localhost 
Shell :: list files in git 
Shell :: wordpress mit ssh installieren 
Shell :: cmd flutter doctor says android studio is not installed 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =