Changing the login shell for a user: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>Johayek
m (2 revisions imported: imported from forum.synology.com/wiki)
imported>Johayek
mNo edit summary
 
Line 17: Line 17:
You're now able to do
You're now able to do
<pre>su some_user</pre>
<pre>su some_user</pre>
[[Category:SynologyWiki]]
[[Category:ToBeExported]]

Latest revision as of 17:37, 31 January 2015

Changing the login shell for a user[edit]

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.

Notice: You should be sure about using vi properly before doing this.

This is done with the following line:

vi /etc/passwd

You'll see a line like this:

some_user:x:1025:100:Descriptive text:/nonexist:/sbin/nologin

Change that line to:

some_user:x:1025:100:Descriptive text:/nonexist:/bin/ash

Save the file, and you're done. You're now able to do

su some_user