# I fiddled with the users permission and now File Manager Showing Unknown Error

**URL:** <https://forum.hestiacp.com/t/i-fiddled-with-the-users-permission-and-now-file-manager-showing-unknown-error/10683>\
**Category:** FTP\
**Created:** [August 21, 2023, 10:36am UTC](https://forum.hestiacp.com/t/i-fiddled-with-the-users-permission-and-now-file-manager-showing-unknown-error/10683 "2023-08-21T10:36:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierreacarvalho](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@pierreacarvalho](https://forum.hestiacp.com/u/pierreacarvalho)\
**Post date:** [August 21, 2023, 10:36am UTC](https://forum.hestiacp.com/t/i-fiddled-with-the-users-permission-and-now-file-manager-showing-unknown-error/10683/1 "2023-08-21T10:36:31Z")

</div>

So I did something stupid. I wanted to install drupal using composer and it gave me a warning that I was root. Now Linode gave me only a root user. So i created a regular user called pierre. I added this user to the hestiaCP pierreac group. pierreac is part of hestia-users group. I did this so i could access /home/pierreac/ to install drupal using composer as a regular user. However, I cannot seem to remember what the permissions were set to earlier to revert.

So my question is - Which user and group should I give permission to, to get HestiaCP FM working again?

Here is my ls -al

```auto
root@hestia:~# ls -al /home/pierreac/
total 432
drwxrwxr-x+ 13 root pierreac 4096 Aug 19 14:58 .
drwxr-xr-x 5 root root 4096 Aug 21 12:40 ..
-rw-rw-r-- 1 pierreac pierreac 220 Apr 24 02:53 .bash_logout
-rw-rw-r-- 1 pierreac pierreac 3526 Apr 24 02:53 .bashrc
drwxrwxr-x 2 pierreac pierreac 4096 Aug 18 15:15 .cache
drwxrwxr-x 2 pierreac pierreac 4096 Aug 18 15:15 .composer
drwxr-xr-x 4 root root 4096 Aug 18 15:15 conf
drwxrwxr-x 2 pierreac pierreac 4096 Aug 18 15:15 .config
drwxrwxr-x 2 pierreac pierreac 4096 Aug 18 15:15 .local
drwxrwxr-x 2 pierreac pierreac 4096 Aug 18 15:15 .npm
-rw-rw-r-- 1 pierreac pierreac 807 Apr 24 02:53 .profile
drwxrwxr-x 2 pierreac pierreac 4096 Aug 18 15:28 .ssh
drwx-w---- 2 pierreac pierreac 376832 Aug 21 16:05 tmp
drwxrwxr-x 2 pierreac pierreac 4096 Aug 18 15:15 .vscode-server
drwxrwxr-x 8 root pierreac 4096 Aug 21 01:51 web
drwxrwxr-x 3 pierreac pierreac 4096 Aug 19 14:58 .wp-cli

```

```auto
2023/08/21 15:54:21 [error] 417919#0: *147 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught League\Flysystem\Sftp\ConnectionErrorException: Could not login with username: pierreac, host: 127.0.0.1 in /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php:244
Stack trace:
#0 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(207): League\Flysystem\Sftp\SftpAdapter->login()
#1 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php(650): League\Flysystem\Sftp\SftpAdapter->connect()
#2 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(559): League\Flysystem\Adapter\AbstractFtpAdapter->getConnection()
#3 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(551): League\Flysystem\Sftp\SftpAdapter->getMetadata()
#4 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Filesystem.php(58): League\Flysystem\Sftp\SftpAdapter->has()
#5 /usr/local/hestia/web/fm/backend/Services/Storage/Filesystem.php(50): League\Flysystem\Filesystem->has()
#6 /usr/local/he" while reading response header from upstream, client: 108.162.238.133, server: _, request: "POST /fm/?r=/createnew HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestia.oakarborconsulting.com:2083", referrer: "https://hestia.oakarborconsulting.com:2083/fm/"

```

---

<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:** [August 21, 2023, 10:41am UTC](https://forum.hestiacp.com/t/i-fiddled-with-the-users-permission-and-now-file-manager-showing-unknown-error/10683/2 "2023-08-21T10:41:10Z")

</div>

v-change-user-shell hestiauser bash will give you shell access to your use and you should be able to login with it…

v-rebuild-user user should rebuild the permissions of the Hestia user.

Also if you changes the user “shell” access" from nologin to “bash” you can use that user to install composer 🙂

---

<div class="post-metadata">

**Author:** ![pierreacarvalho](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@pierreacarvalho](https://forum.hestiacp.com/u/pierreacarvalho)\
**Post date:** [August 21, 2023, 10:44am UTC](https://forum.hestiacp.com/t/i-fiddled-with-the-users-permission-and-now-file-manager-showing-unknown-error/10683/3 "2023-08-21T10:44:43Z")

</div>

Thanks so much. I was worried that changing hestia user from no-login to bash could be a possible security risk. Thanks again!

---

<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:** [August 21, 2023, 10:54am UTC](https://forum.hestiacp.com/t/i-fiddled-with-the-users-permission-and-now-file-manager-showing-unknown-error/10683/4 "2023-08-21T10:54:11Z")

</div>

No not really… It should be only be used for persons you can trust off-course or use it your self…

---

<div class="post-metadata">

**Author:** ![pierreacarvalho](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@pierreacarvalho](https://forum.hestiacp.com/u/pierreacarvalho)\
**Post date:** [August 21, 2023, 5:19pm UTC](https://forum.hestiacp.com/t/i-fiddled-with-the-users-permission-and-now-file-manager-showing-unknown-error/10683/5 "2023-08-21T17:19:37Z")

</div>

Cool. Thanks. You saved my behind today.
