3. Now let’s play with shell. Change the shell field in “/etc/passwd” with “/sbin/nologin” for the user uxtechno.
[root@kalwa1 ~]# cat /etc/passwd|grep -i uxtechno
Now if you try to login with new session. The session will disappears as system does not have the proper shell and if you try to switch user it will prompt with “This account is currently not available.”
[root@kalwa1 ~]# su - uxtechno
This account is currently not available.