Hardware: Old laptop or computer YunoHost version: Latest I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
I needed to change the hardware of my yunohost server.
On the old machine I did a Yunohost backup.
On the new machine I installed Debian. Then I installed Yunohost through the installation script. Then restored system and apps. Rebooted.
Almost everything seems to work now. I can log into the server’s terminal as root without a problem. But when logging in the server’s terminal with “myuser”, which was admin, now it does not have sudo permissions:
myuser@mydefaultsubdomain:~$ sudo apt update
myuser is not allowed to run sudo on mydefaultsubdomain. This incident will be resported.
And, when I’m on my desktop, I cannot SSH into the server:
And what it’s weirdest: I can perfectly log into the web admin with myuser !!
I am suspecting that, before the Yunohost installation, during the Debian installation wizard, when it asks for a user, perhaps I used the same “myuser” and that could be giving some problem now??
fist of all, I guess you should use the webUI to create another user (not the same name), make this user admin, and test it for ssh and sudo. At least you won’t lock yourself out when trying to solve it.
If that works, yes, I guess there’s been a mixup between the debian user, and the original one in yunohost.
Second, do you still have access to your old server’s files, maybe useful for recovering past configs perhaps (ssh keys?).
Yes, that would definitely be a solution, but the thing is my user is admin on many services and I’m afraid it could be problematic to delete it (and for now I prefer to avoid having several users for myself). I’d rather find out where exactly the problem is and fix it, I guess it must be something simple…
Thank you @rodinux for your message
I checked all that (I should have mentioned it in my first post, apologies) and everything was ok. It is a mysterious thing…