Disable user account in Linux:-
Method 1:-
[root@localhost ~]# usermod -s /bin/nologin user_name
Where,
-s= Shell
/bin/nologin= Shell name
Method 2:-
[root@localhost ~]# usermod -s /sbin/nologin user_name
Where,
/sbin/nologin= Shell name
Both methods will work fine....
That was interesting, a useful tip.
ReplyDeleteThanks Learning_Tux....
ReplyDelete