# How to start a bash shell for another user

**URL:** <https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693>\
**Category:** Tutorials\
**Tags:** english\
**Created:** [July 28, 2026, 10:45am UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693 "2026-07-28T10:45:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![LasseGismo](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/l/58956e/32.png) [@LasseGismo](https://forum.yunohost.org/u/LasseGismo)\
**Post date:** [July 28, 2026, 10:45am UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/1 "2026-07-28T10:45:45Z")

</div>

Hi.

Sorry to bother you, but I’m not able to find the correct yunohost command to start a bash shell for another user.

Can anyone help me please.

Thanks.

---

<div class="post-metadata">

**Author:** ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)\
**Post date:** [July 28, 2026, 11:37am UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/2 "2026-07-28T11:37:36Z")

</div>

```auto
su otheruser

```

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [July 28, 2026, 12:41pm UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/3 "2026-07-28T12:41:09Z")

</div>

The debian way.  
The method proposed by @otm33 or `sudo -iu username`

---

<div class="post-metadata">

**Author:** ![LasseGismo](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/l/58956e/32.png) [@LasseGismo](https://forum.yunohost.org/u/LasseGismo)\
**Post date:** [July 28, 2026, 2:55pm UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/4 "2026-07-28T14:55:18Z")

</div>

Thanks, but I’m searching for anything related to “sudo yunohost….shell…”, without the need to know the password - that I don’ have.

---

<div class="post-metadata">

**Author:** ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)\
**Post date:** [July 28, 2026, 2:59pm UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/5 "2026-07-28T14:59:24Z")

</div>

Ok. From your admin user

```auto
sudo -iu root
sudo -iu otheruser

```

---

<div class="post-metadata">

**Author:** ![LasseGismo](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/l/58956e/32.png) [@LasseGismo](https://forum.yunohost.org/u/LasseGismo)\
**Post date:** [July 28, 2026, 4:10pm UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/6 "2026-07-28T16:10:25Z")

</div>

“Sorry, user admin is not allowed to execute ‘/bin/bash’ as friendica on…”

😉

Need the yunohost command string to do it.

---

<div class="post-metadata">

**Author:** ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)\
**Post date:** [July 28, 2026, 4:12pm UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/7 "2026-07-28T16:12:57Z")

</div>

Your admin user is the user account you use to administer your server.

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [July 28, 2026, 4:28pm UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/8 "2026-07-28T16:28:24Z")

</div>

> [@LasseGismo](#):
>
> friendica

Ah, you need the shell of an app user : `sudo yunohost app shell friendica`

---

<div class="post-metadata">

**Author:** ![LasseGismo](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/l/58956e/32.png) [@LasseGismo](https://forum.yunohost.org/u/LasseGismo)\
**Post date:** [July 28, 2026, 4:28pm UTC](https://forum.yunohost.org/t/how-to-start-a-bash-shell-for-another-user/42693/9 "2026-07-28T16:28:58Z")

</div>

Found it myself - thanks for helping.

“sudo yunohost app shell friendica” is the magic command
