Disable user account in Linux

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....