I have already gone through the post in Unix & Linux and tried altering /etc/passwd manually like below
user1:x:1001:1001:,,,:/home/user1:/usr/sbin/nologin
after making change user1 is not being able to login from terminal but surprisingly can login from gnome
What's wrong?
Description: Ubuntu 14.04.3 LTS
kernel: 3.19.0-33-generic