# V-restore-user command not found

**URL:** <https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849>\
**Category:** Community Support\
**Created:** [February 22, 2021, 8:33am UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849 "2021-02-22T08:33:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxim25](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@maxim25](https://forum.hestiacp.com/u/maxim25)\
**Post date:** [February 22, 2021, 8:33am UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/1 "2021-02-22T08:33:26Z")

</div>

пытаюсь восстановить пользователя VestaCP в новой панели Hestia по ssh из под root:

# v-restore-user admin admin.2021-02-21\_23-34-23.tar

Выдает ошибку:  
v-restore-user: command not found

В чем проблема?

---

<div class="post-metadata">

**Author:** ![Dennis](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/dennis/32/1334_2.png) [@Dennis](https://forum.hestiacp.com/u/Dennis)\
**Post date:** [February 22, 2021, 8:37am UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/2 "2021-02-22T08:37:17Z")

</div>

> [@maxim25](#):
>
> v-restore-user admin admin.2021-02-21\_23-34-23.tar

try

```
sudo v-restore-user admin admin.2021-02-21_23-34-23.tar

```

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [February 22, 2021, 8:50am UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/3 "2021-02-22T08:50:04Z")

</div>

> [@maxim25](#):
>
> пытаюсь восстановить пользователя VestaCP в новой панели Hestia по ssh из под root:

Пожалуйста, пиши по-английски

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 22, 2021, 8:56am UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/4 "2021-02-22T08:56:54Z")

</div>

Use the full path

/usr/local/hestia/bin/v-restore-user

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [February 22, 2021, 9:16am UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/5 "2021-02-22T09:16:37Z")

</div>

> [@eris](#):
>
> /usr/local/hestia/bin/v-restore-user

or

$HESTIA/bin/v-restore-user

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 22, 2021, 9:18am UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/6 "2021-02-22T09:18:57Z")

</div>

I have added:

`PATH=$PATH:/usr/local/hestia/bin/`

to .bash\_profile

or

```
if ["${PATH#*/usr/local/hestia/bin*}" = "$PATH"]; then
. /etc/profile.d/hestia.sh
fi

```

to .profile

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [February 22, 2021, 5:22pm UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/7 "2021-02-22T17:22:02Z")

</div>

> [@eris](#):
>
> ```auto
> if ["${PATH#*/usr/local/hestia/bin*}" = "$PATH"]; then
> . /etc/profile.d/hestia.sh
> fi
> 
> ```

How about we add $HESTIA/bin to the path automatically upon install? I think that the vast majority of users will have to do it one way or the other. So we will all save time and people like me who are less experienced will have an easier first experience.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 22, 2021, 5:27pm UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/8 "2021-02-22T17:27:19Z")

</div>

It happens when you install hestia with sudo and run the command as root. Or sudo into the root user from the other user.

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [February 22, 2021, 5:33pm UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/9 "2021-02-22T17:33:32Z")

</div>

Does it? Maybe not in Debian? (but this is off-topic)

---

<div class="post-metadata">

**Author:** ![maxim25](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@maxim25](https://forum.hestiacp.com/u/maxim25)\
**Post date:** [February 22, 2021, 10:58pm UTC](https://forum.hestiacp.com/t/v-restore-user-command-not-found/2849/10 "2021-02-22T22:58:16Z")

</div>

> [@eris](#):
>
> /usr/local/hestia/bin/v-restore-user

вот это помогло!
