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

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

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

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/"

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 :slight_smile:

1 Like

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

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

1 Like

Cool. Thanks. You saved my behind today.