Editing How does the Synology Linux implementation work, e.g. bootup, device management etc

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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 24: Line 24:
For CS407 fw598 when you log in to the Comand Line Interface (via either SSH or Telnet) as a user (usually root) the NAS creates a ptty ash shell for you and drops you into that users "home" directory as defined in the file "/etc/passwd". It then runs the file "/etc/profile". If the home directory of the logging in user contains a file ".profile" (synology use one for the user "root" it is "/root/.profile") this is read and also actioned setting environment variables, such as path, alias's, prompt etc. You can add to this file to run scripts or set parameters automatically when you log in using the CLI.
For CS407 fw598 when you log in to the Comand Line Interface (via either SSH or Telnet) as a user (usually root) the NAS creates a ptty ash shell for you and drops you into that users "home" directory as defined in the file "/etc/passwd". It then runs the file "/etc/profile". If the home directory of the logging in user contains a file ".profile" (synology use one for the user "root" it is "/root/.profile") this is read and also actioned setting environment variables, such as path, alias's, prompt etc. You can add to this file to run scripts or set parameters automatically when you log in using the CLI.


It appears: For the DS210j, a newly created user is blocked from logging in.  To unblock, edit /etc/passwd to /bin/ash (instead of /sbin/nologin) for the appropriate user.  It is good practice to login as root/admin only when necessary, with general fiddling with program configs being safer done as a non-root user.
It appears: For the DS210j, a newly created user is blocked from logging in.  To change this block, edit /etc/passwd to /bin/ash (instead of /sbin/nologin) for the appropriate user.  It is good practice to login as root/admin only when necessary and general fiddling with program configs is safer done as a non-root user.
 
[[Category:SynologyWiki]]
[[Category:ToBeExported]]
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)