Command to disable the account in linux
step 1:chsh -list
step 1:chsh -list
[root@nocdev ~]# chsh -list
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/ksh
/bin/zsh
step 2:chsh 12345
[root@nocdev ~]# chsh 12345
Changing shell for 12345.
New shell [/bin/bash]: type > /sbin/nologin = to change login shell
Step 3: To check if the user account is disable.
[root@nocdev ~]# su - 1234
This account is currently not available.
[root@nocdev ~]#
No comments:
Post a Comment