# 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:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daoudy](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@Daoudy](https://discuss.elastic.co/u/Daoudy)\
**Post date:** [April 12, 2025, 1:08am UTC](https://discuss.elastic.co/t/elastic-agent-sudo-password/377059/1 "2025-04-12T01:08:35Z")

</div>

![Sudo password 2025-04-11 205614](https://us1.discourse-cdn.com/elastic/original/3X/1/f/1f4c5b506161d7bb747caa32c0734b641ee1a098.png)  
I'm trying to install the elastic agent, so I pasted the command on /home/elastic/ but it's asking for the sudo password.

---

<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

---

<div class="post-metadata">

**Author:** ![Daoudy](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@Daoudy](https://discuss.elastic.co/u/Daoudy)\
**Post date:** [April 14, 2025, 12:27am UTC](https://discuss.elastic.co/t/elastic-agent-sudo-password/377059/3 "2025-04-14T00:27:18Z")

</div>

![sudo screenshot](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee6119dee7ecbf0e417bd475948d9e65c08efc94.png)  
Musab\_Dogan, as you can see I was in the right directory but it is asking sudo password

---

<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 14, 2025, 9:56am UTC](https://discuss.elastic.co/t/elastic-agent-sudo-password/377059/4 "2025-04-14T09:56:45Z")

</div>

pinging @andre_murbach_maidl. He can answer better to this question.

---

<div class="post-metadata">

**Author:** ![Daoudy](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@Daoudy](https://discuss.elastic.co/u/Daoudy)\
**Post date:** [April 15, 2025, 12:21am UTC](https://discuss.elastic.co/t/elastic-agent-sudo-password/377059/5 "2025-04-15T00:21:56Z")

</div>

@Andre_Murbach_Maidl . Can you help me with my elastic agent installation? it's asking me a sudo password

---

<div class="post-metadata">

**Author:** ![Andre\_Murbach\_Maidl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andre_murbach_maidl/32/83508_2.png) [@Andre\_Murbach\_Maidl](https://discuss.elastic.co/u/Andre_Murbach_Maidl)\
**Post date:** [April 22, 2025, 5:18pm UTC](https://discuss.elastic.co/t/elastic-agent-sudo-password/377059/6 "2025-04-22T17:18:40Z")

</div>

> [@Daoudy](#):
>
> o I pasted the command on /home/elastic/ but it's asking for the sudo password.

Hi @Daoudy , I see by the screenshot that you are taking the _Time Series Datastream_ training. In this environment you don't need to install the Elastic Agent because it's already available. Hence `sudo` access is not provided there.

Best,  
Andre
