To disable shell access use the following command (replace username with the correct values for your situation – leave out the curly brackets).
chsh -s /sbin/nologin {username}
or chsh - /usr/sbin/nologin {username}
To grant bash access use:
chsh -s /bin/bash {username}