How to use root in Synology DSM

You may use “ssh admin@[NAS IP]” to login DSM but not root. They are different user. Most configuration need root access to edit. You have to first ssh as admin then use “sudo su” to root.

admin@DS214SE:/$ sudo su -

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.


Login as root

After switching to root, use “synouser –setpw root [new password for root]” to give root a different password for security concern. Next time, you may login as root with your new password.

root@DS214SE:~# synouser --setpw root 1$9%A
root@DS214SE:~# exit
admin@DS214SE:/$ sudo su -
root@DS214SE:~# exit
admin@DS214SE:/$ exit
Connection to closed.
Amigos-Mac-mini:.ssh Amigo$ ssh root@
root@'s password: 

How do i get root access again, step by step? on Synology Community Forum has a detail discussion on this topic.


  1. Synology: Community Forum: How do i get root access again, step by step?
  2. Synology: DSM
  3. Wiki: Secure Shell
  4. Wiki: su (Unix)
  5. Wiki: sudo

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s