Changing the login shell for a user

From wiki
Revision as of 20:08, 7 April 2008 by imported>Satinz (New page: ===Changing the login shell for a user=== If you experience an error like: <pre>su: cannot run /sbin/nologin: No such file or directory</pre> when you try to do <pre>su some_user</pre> you...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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