# How to add user to sudoers

**URL:** <https://help.nextcloud.com/t/how-to-add-user-to-sudoers/147655>\
**Category:** ℹ️ Support\
**Tags:** ncp\
**Created:** [October 17, 2022, 10:16pm UTC](https://help.nextcloud.com/t/how-to-add-user-to-sudoers/147655 "2022-10-17T22:16:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![schoetju](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schoetju/32/44547_2.png) [@schoetju](https://help.nextcloud.com/u/schoetju)\
**Post date:** [October 18, 2022, 4:51pm UTC](https://help.nextcloud.com/t/how-to-add-user-to-sudoers/147655/8 "2022-10-18T16:51:59Z")

</div>

Hi sn2018,

please use the web-ui and activate SSH for user pi as described in

> [@How to enable SSH using ncp-config or ncp-web](https://help.nextcloud.com/t/how-to-enable-ssh-using-ncp-config-or-ncp-web/126317):
>
> Depending on your access Web, from a browser visit [https://nextcloudpi.local:4443](https://nextcloudpi.local:4443) username : ncp Password : Generated at activation [Watch a short video demonstrating enable ssh in ncp-web](https://youtu.be/mjt9wTef5AA) To have access through the terminal you need to enable SSH first in the web interface, set a username and password. Once logged in: sudo ncp-config Scroll down ncp-config screen and select SSH [nextcloudpi-config screenshot] Use arrow keys for up and…

(Its currently possible via Web-UI only!!)

This will activate the user pi again (which is part of sudoers)

Afterwards you can logon with user pi from terminal/console (physically keyboard/display connected to your device) as well as using ssh.

Crazy workaround, however the only one i am aware of for now.

Best regards  
schoetju

---

_[View the full topic](https://help.nextcloud.com/t/how-to-add-user-to-sudoers/147655)._
