# What is sudo password in the lab environment

**URL:** <https://discuss.elastic.co/t/what-is-sudo-password-in-the-lab-environment/375035>\
**Category:** Elastic Training\
**Created:** [February 25, 2025, 3:43pm UTC](https://discuss.elastic.co/t/what-is-sudo-password-in-the-lab-environment/375035 "2025-02-25T15:43:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Waldemar\_Schafer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/waldemar_schafer/32/141626_2.png) [@Waldemar\_Schafer](https://discuss.elastic.co/u/Waldemar_Schafer)\
**Post date:** [February 25, 2025, 3:58pm UTC](https://discuss.elastic.co/t/what-is-sudo-password-in-the-lab-environment/375035/3 "2025-02-25T15:58:26Z")

</div>

> [@Waldemar\_Schafer](#):
>
> sudo ./elastic-agent install --url=[https://fleet-server:8220](https://fleet-server:8220) --enrollment-token=..........

Hi @Andre_Murbach_Maidl

I have restarted the environment with a fresh shell and tried this:

```auto
elastic@ip-172-31-35-63:~$ pwd
/home/elastic
elastic@ip-172-31-35-63:~$ sudo ./elastic-agent install --url=https://fleet-server:8220 --enrollment-token=..........
[sudo] password for elastic:

```

There are 2 reasons that sudo is required:

- in the step 12 it is explicitly asked for ` After the Elastic Agent is installed you can use `sudo /opt/Elastic/Agent/elastic-agent` in case you need to troubleshoot.`
- Elastic Agent requires root according the Elastic documentation

---

_[View the full topic](https://discuss.elastic.co/t/what-is-sudo-password-in-the-lab-environment/375035)._
