Changing the login shell for a user
Jump to navigation
Jump to search
Changing the login shell for a user
If you experience an error like:
su: cannot run /sbin/nologin: No such file or directory
when you try to do
su some_user
you have to change the login shell for that user. This is done with the following line:
vi /etc/passwd
If you