Editing
Changing the login shell for a user
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===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 have to change the login shell for that user. '''Notice:''' You should be sure about using <code>vi</code> properly before doing this. This is done with the following line: <pre>vi /etc/passwd</pre> You'll see a line like this: <pre>some_user:x:1025:100:Descriptive text:/nonexist:/sbin/nologin</pre> Change that line to: <pre>some_user:x:1025:100:Descriptive text:/nonexist:/bin/ash</pre> Save the file, and you're done. You're now able to do <pre>su some_user</pre> [[Category:SynologyWiki]] [[Category:ToBeExported]]
Summary:
Please note that all contributions to wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information