0

My current DSM is 6.1.4-15217 Update 5. There is something I do not understand :

I can ssh via an admin account, root account (yes, I shouldn't be according to docs) and my user account (john) which is in administrators group.

For security reasons, I would like to only allow connection through ssh with user account (john) and then do sudo root/admin if required.

For the moment, although I can log using root/admin, Once logged with John, I cannot sudo to root or admin (I triple checked the password used, account is not locked since I can always connect through ssh).

When I say connect, that means using putty from a windows box.

What is amiss in my configuration ?

Thanks for your input

  • Please describe your steps and errors you get. Ensure that you use John's password when do sudo. – Zalatik Jan 29 '18 at 19:29
  • As requested : Launch putty, connect as john. Session is opened on Synology, then su <enter> I type root password. I get Permission denied. su admin I type root password. I get Permission denied. – Charly Jan 30 '18 at 9:18
  • Try sudo -i with john password instead of su. Looks very similar to your question: superuser.com/questions/1057853/… – Zalatik Jan 31 '18 at 9:49
  • Sorry for the delay, I just moved and had no internet since. It indeed worked with John's password. By the way, the previous question was not mine, although it looked a lot alike. Plz provide as an answer so that I can Give you the "answer valid tag" :) – Charly Feb 5 '18 at 20:44
0

Try sudo -i with john password instead of su. Looks very similar to your question: Synology DSM - Can't log as root (but works with admin)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.