• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Search results

  1. M

    Resolved change home directory for a chrooted user

    Oh ****! I found the solution! Thank's john0001, after re-reading my own words I found the solution. Really easy... Edit as root the chrooted passwd file and change de home dir from / to /desired_home_folder before... bash-5.0$ cat /etc/passwd root:*:0:0:Root:/:/bin/false...
  2. M

    Resolved change home directory for a chrooted user

    I think the problem is related with the shell of this user (/opt/psa/bin/chrootsh) and the way plesk configure that, but I don't know where to find more info about chrootsh in plesk. chrooteduser:x:10003:1003::/var/www/vhosts/domain.tld/another_dir/:/opt/psa/bin/chrootsh
  3. M

    Resolved change home directory for a chrooted user

    The previous output about /etc/passwd was on my local machine. Here the plesk... bash-5.0$ cat /etc/passwd root:*:0:0:Root:/:/bin/false chrooteduser:x:10003:1003::/:/bin/bash
  4. M

    Resolved change home directory for a chrooted user

    Yes on my local machine. In plesk no.
  5. M

    Resolved change home directory for a chrooted user

    I dont' have the cat command on the chroot jail but ls ... $ ls /etc/passwd ls: cannot access '/etc/passwd': No such file or directory
  6. M

    Resolved change home directory for a chrooted user

    On my linux machine I only need to change the user homedir in /etc/passwd but in the plesk server this doesn't work (see the first message on this threat). And I think it's a plesk limitation or restriction.
  7. M

    Resolved change home directory for a chrooted user

    Thank's for reply john0001, but... I don't want to access outside the chroot, read: "We only want to change the home directory to a one level deeper (from /path/to/jail to /path/to/jail/another_dir)" another_dir is inside the chroot, not outside. No problem. It's ok for us. We want to start...
  8. M

    Resolved change home directory for a chrooted user

    After thinking about it a little more ... I'm not sure that is not possible. A regular user (no chrooted) can got a home directory outside /home why a chrooted can't? We only want to change the home directory to a one level deeper (from /path/to/jail to /path/to/jail/another_dir), not to...
  9. M

    Resolved change home directory for a chrooted user

    Ok, I understand. Thank's for answer @john0001
  10. M

    Resolved change home directory for a chrooted user

    If we change de home directory for a chrooted user from /var/www/vhosts/domain.tld to /var/www/vhosts/domain.tld/another_dir, we cannot login and get this error... ssh [email protected] Password: Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-67-generic x86_64) Last login: Mon Mar 22...
Back
Top