# What to do if admin cannot sudo

**URL:** <https://forum.yunohost.org/t/what-to-do-if-admin-cannot-sudo/21107>\
**Category:** Discuss\
**Tags:** english\
**Created:** [September 6, 2022, 5:58pm UTC](https://forum.yunohost.org/t/what-to-do-if-admin-cannot-sudo/21107 "2022-09-06T17:58:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![petesim](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/f9ae1b/32.png) [@petesim](https://forum.yunohost.org/u/petesim)\
**Post date:** [September 10, 2022, 8:11pm UTC](https://forum.yunohost.org/t/what-to-do-if-admin-cannot-sudo/21107/4 "2022-09-10T20:11:33Z")

</div>

Sorry, encountered the same message `admin is not in the sudoers file. This incident will be reported.` And following your discussion I still wonder what is _recommended_ way to remediate? In contrast to @sssammm I didn’t do anything to the system yet, and my state came from plain recover of backup to another VPS instance and [setting SSH port](https://forum.yunohost.org/t/doc-modify-the-ssh-port-modifier-le-port-ssh/15917/9) since the new hosting prohibit `22` in spite of another port.

As in my case `su` doesn’t work as well, looks like I will need to redo the migration. **But I still need to know what to do to empower `admin` user again**. Should note, that previously there was no such problem after restoring on new instance.

---

_[View the full topic](https://forum.yunohost.org/t/what-to-do-if-admin-cannot-sudo/21107)._
