# Elastic Agent sudo password

**URL:** <https://discuss.elastic.co/t/elastic-agent-sudo-password/377059>\
**Category:** Elastic Observability\
**Tags:** docker\
**Created:** [April 12, 2025, 1:08am UTC](https://discuss.elastic.co/t/elastic-agent-sudo-password/377059 "2025-04-12T01:08:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Musab\_Dogan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/musab_dogan/32/70691_2.png) [@Musab\_Dogan](https://discuss.elastic.co/u/Musab_Dogan)\
**Post date:** [April 12, 2025, 9:10pm UTC](https://discuss.elastic.co/t/elastic-agent-sudo-password/377059/2 "2025-04-12T21:10:56Z")

</div>

check this:

> [@What is sudo password in the lab environment](https://discuss.elastic.co/t/what-is-sudo-password-in-the-lab-environment/375035/2):
>
> Hi @Waldemar_Schafer , you don't need sudo password for installing the Elastic Agent, but you need to paste and run the copied commands in a fresh terminal and from the elastic user home directory (/home/elastic or ~ ). Just to make sure you are on the right path, you can run cd ~ in your terminal window before pasting and running the command lines you copied. Best, Andre

---

_[View the full topic](https://discuss.elastic.co/t/elastic-agent-sudo-password/377059)._
