Cannot log in to DSM (Synology NAS)





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







2















I think I have locked myself out from a Synology DSM Web access. When I was logged in, I removed all "granted by default" privileges, and apparenlty one of them (Desktop?) affected my administration account. Now when I get to the login page, I successfully fill username, password and 2nd verification and then I got a "You are not authorized" error (note: my IP is not auto-blocked). I have all passwords and can access the device via ssh and the data via SMB.



All I could research is to do a soft reset, but I am not sure whether this will fix privileges too and I would prefer not to destroy my current configuration.



By using ssh, is there a way I can fix the privileges to add my custom administration user to log in to DSM? I've been exploring some files on /etc with no much success.










share|improve this question





























    2















    I think I have locked myself out from a Synology DSM Web access. When I was logged in, I removed all "granted by default" privileges, and apparenlty one of them (Desktop?) affected my administration account. Now when I get to the login page, I successfully fill username, password and 2nd verification and then I got a "You are not authorized" error (note: my IP is not auto-blocked). I have all passwords and can access the device via ssh and the data via SMB.



    All I could research is to do a soft reset, but I am not sure whether this will fix privileges too and I would prefer not to destroy my current configuration.



    By using ssh, is there a way I can fix the privileges to add my custom administration user to log in to DSM? I've been exploring some files on /etc with no much success.










    share|improve this question

























      2












      2








      2


      3






      I think I have locked myself out from a Synology DSM Web access. When I was logged in, I removed all "granted by default" privileges, and apparenlty one of them (Desktop?) affected my administration account. Now when I get to the login page, I successfully fill username, password and 2nd verification and then I got a "You are not authorized" error (note: my IP is not auto-blocked). I have all passwords and can access the device via ssh and the data via SMB.



      All I could research is to do a soft reset, but I am not sure whether this will fix privileges too and I would prefer not to destroy my current configuration.



      By using ssh, is there a way I can fix the privileges to add my custom administration user to log in to DSM? I've been exploring some files on /etc with no much success.










      share|improve this question














      I think I have locked myself out from a Synology DSM Web access. When I was logged in, I removed all "granted by default" privileges, and apparenlty one of them (Desktop?) affected my administration account. Now when I get to the login page, I successfully fill username, password and 2nd verification and then I got a "You are not authorized" error (note: my IP is not auto-blocked). I have all passwords and can access the device via ssh and the data via SMB.



      All I could research is to do a soft reset, but I am not sure whether this will fix privileges too and I would prefer not to destroy my current configuration.



      By using ssh, is there a way I can fix the privileges to add my custom administration user to log in to DSM? I've been exploring some files on /etc with no much success.







      synology






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 '17 at 12:31









      user1156544user1156544

      169110




      169110






















          2 Answers
          2






          active

          oldest

          votes


















          5














          Thanks to Tonny's confirmation about Desktop I was able to fix the problem, so I will share because it is a bit frustrating if this happens to you....



          After successfully inserting the passwords in DSM, the error is something like this:
          You are not authorized to use this service."You are not authorized to use this service."



          Steps to fix the problem if you accidentally locked yourself out of the DSM Web access:




          1. You need to have ssh access, and use an administrator user. If you don't, you probably need to do a soft reset.

          2. (I am using Linux) Execute: ssh your_username@your_synology_ip

          3. cd /etc


          4. grep your_username /etc/passwd (e.g. grep administrator /etc/passwd)
            The answer will be something like
            administrator:x:1021:100::/var/services/homes/administrator:/bin/sh
            You are interested in your id, in the example: 1021

          5. Make a backup of the database, just in case: cp synoappprivilege.db synoappprivilege.db.org


          6. sudo sqlite3 synoappprivilege.db
            It will ask for your password. Insert the password of your_username (same password you used for ssh). It will prompt:



            SQLite version 3.10.2 2016-01-20 15:27:19
            Enter ".help" for usage hints.
            sqlite>



          7. Check tables (not strictly necessary):



            sqlite> .tables
            AppPrivRule



          8. Query table (not strictly necessary):



             sqlite> select * from AppPrivRule;


            This will dump the contents of the table, which will be similar to these:



             2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.BackupService.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailPlusServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...



          9. The priviledge we unintentionally removed was SYNO.Desktop and will probably not be listed in the previous command. So we need to insert it (note: use your user id as obtained before with grep, in my case, 1021):



            sqlite> insert into AppPrivRule VALUES(0,1021,'SYNO.Desktop','0.0.0.0','0000:0000:0000:0000:0000:FFFF:0000:0000','','');



          10. Confirmation that everything is all right...



            sqlite> select * from AppPrivRule;

            2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...
            0|1021|SYNO.Desktop|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||



          DONE! You can now log in.



          After I fixed the problem I found the same solution here, but it was impossible to get from search engines on the first instance. Also, beware the insert in that link has a small mistake.






          share|improve this answer





















          • 1





            Glad I was able to steer you in the right direction. And a very nicely written up answer. Well done! Have some points from me :-)

            – Tonny
            Mar 23 '17 at 14:41











          • Perfect answer, fixed it instantly.

            – joopmicroop
            Aug 16 '17 at 10:43



















          1














          Interresting question. I did a bit of digging around on my own Syno and came up with this:



          Look in /etc/group via ssh.
          There should be a line looking like:



          administrators:x:101:john,admin,plex


          ("plex" is only there if you installed the Plex package.)



          Add your admin account to that line. As far as I know that is the only thing needed to get into DSM web-managment.
          For the normal web-server access (personalized home-page) user must also be added to the "http" line in the same file.



          Next thing is to pull the file /etc/synoappprivilege.db to a computer (carefull, this is a binary. Don't copy in text mode.)

          This is a SQLite database containing the actual privileges.

          Load this file in a HEX editor and look for the Desktop section.

          This should look like:



          YNO.Desktop0.0.0.00000:0000:0000:0000:0000:FFFF:0000:000MW


          The YNO and MW could have different values. The important part are the numbers. These should be the same as show above.

          Change this using the HEX editor and put the modified file back on the Syno (keep a backup-copy of the original!!!).



          I'm not sure this change is picked up auto-magically, so a reboot may be needed to activate the new setting.






          share|improve this answer
























          • Thanks! My user was already in the administrators line. I added it also at the end of the line http. I tried to log in just in acse but did not work. However, now I try to modify the .db file but there is no line with Desktop... perhaps that is why I cannot access? Perhaps there is a way to modify it via sqlite3

            – user1156544
            Mar 23 '17 at 13:48











          • I got it - posting an answer...

            – user1156544
            Mar 23 '17 at 14:04











          • Thank you Tonny, even though I had already looked at synoappprivilege.db you gave me all the hints to know that SYNO.Desktop should be there to find a solution! You saved my day!

            – user1156544
            Mar 23 '17 at 14:37














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1191594%2fcannot-log-in-to-dsm-synology-nas%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5














          Thanks to Tonny's confirmation about Desktop I was able to fix the problem, so I will share because it is a bit frustrating if this happens to you....



          After successfully inserting the passwords in DSM, the error is something like this:
          You are not authorized to use this service."You are not authorized to use this service."



          Steps to fix the problem if you accidentally locked yourself out of the DSM Web access:




          1. You need to have ssh access, and use an administrator user. If you don't, you probably need to do a soft reset.

          2. (I am using Linux) Execute: ssh your_username@your_synology_ip

          3. cd /etc


          4. grep your_username /etc/passwd (e.g. grep administrator /etc/passwd)
            The answer will be something like
            administrator:x:1021:100::/var/services/homes/administrator:/bin/sh
            You are interested in your id, in the example: 1021

          5. Make a backup of the database, just in case: cp synoappprivilege.db synoappprivilege.db.org


          6. sudo sqlite3 synoappprivilege.db
            It will ask for your password. Insert the password of your_username (same password you used for ssh). It will prompt:



            SQLite version 3.10.2 2016-01-20 15:27:19
            Enter ".help" for usage hints.
            sqlite>



          7. Check tables (not strictly necessary):



            sqlite> .tables
            AppPrivRule



          8. Query table (not strictly necessary):



             sqlite> select * from AppPrivRule;


            This will dump the contents of the table, which will be similar to these:



             2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.BackupService.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailPlusServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...



          9. The priviledge we unintentionally removed was SYNO.Desktop and will probably not be listed in the previous command. So we need to insert it (note: use your user id as obtained before with grep, in my case, 1021):



            sqlite> insert into AppPrivRule VALUES(0,1021,'SYNO.Desktop','0.0.0.0','0000:0000:0000:0000:0000:FFFF:0000:0000','','');



          10. Confirmation that everything is all right...



            sqlite> select * from AppPrivRule;

            2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...
            0|1021|SYNO.Desktop|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||



          DONE! You can now log in.



          After I fixed the problem I found the same solution here, but it was impossible to get from search engines on the first instance. Also, beware the insert in that link has a small mistake.






          share|improve this answer





















          • 1





            Glad I was able to steer you in the right direction. And a very nicely written up answer. Well done! Have some points from me :-)

            – Tonny
            Mar 23 '17 at 14:41











          • Perfect answer, fixed it instantly.

            – joopmicroop
            Aug 16 '17 at 10:43
















          5














          Thanks to Tonny's confirmation about Desktop I was able to fix the problem, so I will share because it is a bit frustrating if this happens to you....



          After successfully inserting the passwords in DSM, the error is something like this:
          You are not authorized to use this service."You are not authorized to use this service."



          Steps to fix the problem if you accidentally locked yourself out of the DSM Web access:




          1. You need to have ssh access, and use an administrator user. If you don't, you probably need to do a soft reset.

          2. (I am using Linux) Execute: ssh your_username@your_synology_ip

          3. cd /etc


          4. grep your_username /etc/passwd (e.g. grep administrator /etc/passwd)
            The answer will be something like
            administrator:x:1021:100::/var/services/homes/administrator:/bin/sh
            You are interested in your id, in the example: 1021

          5. Make a backup of the database, just in case: cp synoappprivilege.db synoappprivilege.db.org


          6. sudo sqlite3 synoappprivilege.db
            It will ask for your password. Insert the password of your_username (same password you used for ssh). It will prompt:



            SQLite version 3.10.2 2016-01-20 15:27:19
            Enter ".help" for usage hints.
            sqlite>



          7. Check tables (not strictly necessary):



            sqlite> .tables
            AppPrivRule



          8. Query table (not strictly necessary):



             sqlite> select * from AppPrivRule;


            This will dump the contents of the table, which will be similar to these:



             2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.BackupService.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailPlusServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...



          9. The priviledge we unintentionally removed was SYNO.Desktop and will probably not be listed in the previous command. So we need to insert it (note: use your user id as obtained before with grep, in my case, 1021):



            sqlite> insert into AppPrivRule VALUES(0,1021,'SYNO.Desktop','0.0.0.0','0000:0000:0000:0000:0000:FFFF:0000:0000','','');



          10. Confirmation that everything is all right...



            sqlite> select * from AppPrivRule;

            2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...
            0|1021|SYNO.Desktop|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||



          DONE! You can now log in.



          After I fixed the problem I found the same solution here, but it was impossible to get from search engines on the first instance. Also, beware the insert in that link has a small mistake.






          share|improve this answer





















          • 1





            Glad I was able to steer you in the right direction. And a very nicely written up answer. Well done! Have some points from me :-)

            – Tonny
            Mar 23 '17 at 14:41











          • Perfect answer, fixed it instantly.

            – joopmicroop
            Aug 16 '17 at 10:43














          5












          5








          5







          Thanks to Tonny's confirmation about Desktop I was able to fix the problem, so I will share because it is a bit frustrating if this happens to you....



          After successfully inserting the passwords in DSM, the error is something like this:
          You are not authorized to use this service."You are not authorized to use this service."



          Steps to fix the problem if you accidentally locked yourself out of the DSM Web access:




          1. You need to have ssh access, and use an administrator user. If you don't, you probably need to do a soft reset.

          2. (I am using Linux) Execute: ssh your_username@your_synology_ip

          3. cd /etc


          4. grep your_username /etc/passwd (e.g. grep administrator /etc/passwd)
            The answer will be something like
            administrator:x:1021:100::/var/services/homes/administrator:/bin/sh
            You are interested in your id, in the example: 1021

          5. Make a backup of the database, just in case: cp synoappprivilege.db synoappprivilege.db.org


          6. sudo sqlite3 synoappprivilege.db
            It will ask for your password. Insert the password of your_username (same password you used for ssh). It will prompt:



            SQLite version 3.10.2 2016-01-20 15:27:19
            Enter ".help" for usage hints.
            sqlite>



          7. Check tables (not strictly necessary):



            sqlite> .tables
            AppPrivRule



          8. Query table (not strictly necessary):



             sqlite> select * from AppPrivRule;


            This will dump the contents of the table, which will be similar to these:



             2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.BackupService.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailPlusServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...



          9. The priviledge we unintentionally removed was SYNO.Desktop and will probably not be listed in the previous command. So we need to insert it (note: use your user id as obtained before with grep, in my case, 1021):



            sqlite> insert into AppPrivRule VALUES(0,1021,'SYNO.Desktop','0.0.0.0','0000:0000:0000:0000:0000:FFFF:0000:0000','','');



          10. Confirmation that everything is all right...



            sqlite> select * from AppPrivRule;

            2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...
            0|1021|SYNO.Desktop|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||



          DONE! You can now log in.



          After I fixed the problem I found the same solution here, but it was impossible to get from search engines on the first instance. Also, beware the insert in that link has a small mistake.






          share|improve this answer















          Thanks to Tonny's confirmation about Desktop I was able to fix the problem, so I will share because it is a bit frustrating if this happens to you....



          After successfully inserting the passwords in DSM, the error is something like this:
          You are not authorized to use this service."You are not authorized to use this service."



          Steps to fix the problem if you accidentally locked yourself out of the DSM Web access:




          1. You need to have ssh access, and use an administrator user. If you don't, you probably need to do a soft reset.

          2. (I am using Linux) Execute: ssh your_username@your_synology_ip

          3. cd /etc


          4. grep your_username /etc/passwd (e.g. grep administrator /etc/passwd)
            The answer will be something like
            administrator:x:1021:100::/var/services/homes/administrator:/bin/sh
            You are interested in your id, in the example: 1021

          5. Make a backup of the database, just in case: cp synoappprivilege.db synoappprivilege.db.org


          6. sudo sqlite3 synoappprivilege.db
            It will ask for your password. Insert the password of your_username (same password you used for ssh). It will prompt:



            SQLite version 3.10.2 2016-01-20 15:27:19
            Enter ".help" for usage hints.
            sqlite>



          7. Check tables (not strictly necessary):



            sqlite> .tables
            AppPrivRule



          8. Query table (not strictly necessary):



             sqlite> select * from AppPrivRule;


            This will dump the contents of the table, which will be similar to these:



             2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.BackupService.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            2|0|SYNO.SDS.MailPlusServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...



          9. The priviledge we unintentionally removed was SYNO.Desktop and will probably not be listed in the previous command. So we need to insert it (note: use your user id as obtained before with grep, in my case, 1021):



            sqlite> insert into AppPrivRule VALUES(0,1021,'SYNO.Desktop','0.0.0.0','0000:0000:0000:0000:0000:FFFF:0000:0000','','');



          10. Confirmation that everything is all right...



            sqlite> select * from AppPrivRule;

            2|0|SYNO.SDS.WebDAVServer.Instance|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||
            ...
            0|1021|SYNO.Desktop|0.0.0.0|0000:0000:0000:0000:0000:FFFF:0000:0000||



          DONE! You can now log in.



          After I fixed the problem I found the same solution here, but it was impossible to get from search engines on the first instance. Also, beware the insert in that link has a small mistake.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 14 '17 at 11:58

























          answered Mar 23 '17 at 14:35









          user1156544user1156544

          169110




          169110








          • 1





            Glad I was able to steer you in the right direction. And a very nicely written up answer. Well done! Have some points from me :-)

            – Tonny
            Mar 23 '17 at 14:41











          • Perfect answer, fixed it instantly.

            – joopmicroop
            Aug 16 '17 at 10:43














          • 1





            Glad I was able to steer you in the right direction. And a very nicely written up answer. Well done! Have some points from me :-)

            – Tonny
            Mar 23 '17 at 14:41











          • Perfect answer, fixed it instantly.

            – joopmicroop
            Aug 16 '17 at 10:43








          1




          1





          Glad I was able to steer you in the right direction. And a very nicely written up answer. Well done! Have some points from me :-)

          – Tonny
          Mar 23 '17 at 14:41





          Glad I was able to steer you in the right direction. And a very nicely written up answer. Well done! Have some points from me :-)

          – Tonny
          Mar 23 '17 at 14:41













          Perfect answer, fixed it instantly.

          – joopmicroop
          Aug 16 '17 at 10:43





          Perfect answer, fixed it instantly.

          – joopmicroop
          Aug 16 '17 at 10:43













          1














          Interresting question. I did a bit of digging around on my own Syno and came up with this:



          Look in /etc/group via ssh.
          There should be a line looking like:



          administrators:x:101:john,admin,plex


          ("plex" is only there if you installed the Plex package.)



          Add your admin account to that line. As far as I know that is the only thing needed to get into DSM web-managment.
          For the normal web-server access (personalized home-page) user must also be added to the "http" line in the same file.



          Next thing is to pull the file /etc/synoappprivilege.db to a computer (carefull, this is a binary. Don't copy in text mode.)

          This is a SQLite database containing the actual privileges.

          Load this file in a HEX editor and look for the Desktop section.

          This should look like:



          YNO.Desktop0.0.0.00000:0000:0000:0000:0000:FFFF:0000:000MW


          The YNO and MW could have different values. The important part are the numbers. These should be the same as show above.

          Change this using the HEX editor and put the modified file back on the Syno (keep a backup-copy of the original!!!).



          I'm not sure this change is picked up auto-magically, so a reboot may be needed to activate the new setting.






          share|improve this answer
























          • Thanks! My user was already in the administrators line. I added it also at the end of the line http. I tried to log in just in acse but did not work. However, now I try to modify the .db file but there is no line with Desktop... perhaps that is why I cannot access? Perhaps there is a way to modify it via sqlite3

            – user1156544
            Mar 23 '17 at 13:48











          • I got it - posting an answer...

            – user1156544
            Mar 23 '17 at 14:04











          • Thank you Tonny, even though I had already looked at synoappprivilege.db you gave me all the hints to know that SYNO.Desktop should be there to find a solution! You saved my day!

            – user1156544
            Mar 23 '17 at 14:37


















          1














          Interresting question. I did a bit of digging around on my own Syno and came up with this:



          Look in /etc/group via ssh.
          There should be a line looking like:



          administrators:x:101:john,admin,plex


          ("plex" is only there if you installed the Plex package.)



          Add your admin account to that line. As far as I know that is the only thing needed to get into DSM web-managment.
          For the normal web-server access (personalized home-page) user must also be added to the "http" line in the same file.



          Next thing is to pull the file /etc/synoappprivilege.db to a computer (carefull, this is a binary. Don't copy in text mode.)

          This is a SQLite database containing the actual privileges.

          Load this file in a HEX editor and look for the Desktop section.

          This should look like:



          YNO.Desktop0.0.0.00000:0000:0000:0000:0000:FFFF:0000:000MW


          The YNO and MW could have different values. The important part are the numbers. These should be the same as show above.

          Change this using the HEX editor and put the modified file back on the Syno (keep a backup-copy of the original!!!).



          I'm not sure this change is picked up auto-magically, so a reboot may be needed to activate the new setting.






          share|improve this answer
























          • Thanks! My user was already in the administrators line. I added it also at the end of the line http. I tried to log in just in acse but did not work. However, now I try to modify the .db file but there is no line with Desktop... perhaps that is why I cannot access? Perhaps there is a way to modify it via sqlite3

            – user1156544
            Mar 23 '17 at 13:48











          • I got it - posting an answer...

            – user1156544
            Mar 23 '17 at 14:04











          • Thank you Tonny, even though I had already looked at synoappprivilege.db you gave me all the hints to know that SYNO.Desktop should be there to find a solution! You saved my day!

            – user1156544
            Mar 23 '17 at 14:37
















          1












          1








          1







          Interresting question. I did a bit of digging around on my own Syno and came up with this:



          Look in /etc/group via ssh.
          There should be a line looking like:



          administrators:x:101:john,admin,plex


          ("plex" is only there if you installed the Plex package.)



          Add your admin account to that line. As far as I know that is the only thing needed to get into DSM web-managment.
          For the normal web-server access (personalized home-page) user must also be added to the "http" line in the same file.



          Next thing is to pull the file /etc/synoappprivilege.db to a computer (carefull, this is a binary. Don't copy in text mode.)

          This is a SQLite database containing the actual privileges.

          Load this file in a HEX editor and look for the Desktop section.

          This should look like:



          YNO.Desktop0.0.0.00000:0000:0000:0000:0000:FFFF:0000:000MW


          The YNO and MW could have different values. The important part are the numbers. These should be the same as show above.

          Change this using the HEX editor and put the modified file back on the Syno (keep a backup-copy of the original!!!).



          I'm not sure this change is picked up auto-magically, so a reboot may be needed to activate the new setting.






          share|improve this answer













          Interresting question. I did a bit of digging around on my own Syno and came up with this:



          Look in /etc/group via ssh.
          There should be a line looking like:



          administrators:x:101:john,admin,plex


          ("plex" is only there if you installed the Plex package.)



          Add your admin account to that line. As far as I know that is the only thing needed to get into DSM web-managment.
          For the normal web-server access (personalized home-page) user must also be added to the "http" line in the same file.



          Next thing is to pull the file /etc/synoappprivilege.db to a computer (carefull, this is a binary. Don't copy in text mode.)

          This is a SQLite database containing the actual privileges.

          Load this file in a HEX editor and look for the Desktop section.

          This should look like:



          YNO.Desktop0.0.0.00000:0000:0000:0000:0000:FFFF:0000:000MW


          The YNO and MW could have different values. The important part are the numbers. These should be the same as show above.

          Change this using the HEX editor and put the modified file back on the Syno (keep a backup-copy of the original!!!).



          I'm not sure this change is picked up auto-magically, so a reboot may be needed to activate the new setting.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 23 '17 at 13:07









          TonnyTonny

          17.3k33455




          17.3k33455













          • Thanks! My user was already in the administrators line. I added it also at the end of the line http. I tried to log in just in acse but did not work. However, now I try to modify the .db file but there is no line with Desktop... perhaps that is why I cannot access? Perhaps there is a way to modify it via sqlite3

            – user1156544
            Mar 23 '17 at 13:48











          • I got it - posting an answer...

            – user1156544
            Mar 23 '17 at 14:04











          • Thank you Tonny, even though I had already looked at synoappprivilege.db you gave me all the hints to know that SYNO.Desktop should be there to find a solution! You saved my day!

            – user1156544
            Mar 23 '17 at 14:37





















          • Thanks! My user was already in the administrators line. I added it also at the end of the line http. I tried to log in just in acse but did not work. However, now I try to modify the .db file but there is no line with Desktop... perhaps that is why I cannot access? Perhaps there is a way to modify it via sqlite3

            – user1156544
            Mar 23 '17 at 13:48











          • I got it - posting an answer...

            – user1156544
            Mar 23 '17 at 14:04











          • Thank you Tonny, even though I had already looked at synoappprivilege.db you gave me all the hints to know that SYNO.Desktop should be there to find a solution! You saved my day!

            – user1156544
            Mar 23 '17 at 14:37



















          Thanks! My user was already in the administrators line. I added it also at the end of the line http. I tried to log in just in acse but did not work. However, now I try to modify the .db file but there is no line with Desktop... perhaps that is why I cannot access? Perhaps there is a way to modify it via sqlite3

          – user1156544
          Mar 23 '17 at 13:48





          Thanks! My user was already in the administrators line. I added it also at the end of the line http. I tried to log in just in acse but did not work. However, now I try to modify the .db file but there is no line with Desktop... perhaps that is why I cannot access? Perhaps there is a way to modify it via sqlite3

          – user1156544
          Mar 23 '17 at 13:48













          I got it - posting an answer...

          – user1156544
          Mar 23 '17 at 14:04





          I got it - posting an answer...

          – user1156544
          Mar 23 '17 at 14:04













          Thank you Tonny, even though I had already looked at synoappprivilege.db you gave me all the hints to know that SYNO.Desktop should be there to find a solution! You saved my day!

          – user1156544
          Mar 23 '17 at 14:37







          Thank you Tonny, even though I had already looked at synoappprivilege.db you gave me all the hints to know that SYNO.Desktop should be there to find a solution! You saved my day!

          – user1156544
          Mar 23 '17 at 14:37




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1191594%2fcannot-log-in-to-dsm-synology-nas%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          Brian Clough

          Cáceres