• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

What happened to 'chrooted' bash?

techwide

New Pleskian
Since I upgraded the latest Plesk, I cannot seem to have 'chrooted' bash any more.

Is this removed for a reason?
 
Uhm .. guess you have a problem. It's still there on MY system.
 
I see the shell (/usr/local/psa/bin/chrootsh) still exists but I don't know why Plesk does not show this shell in the "Shell access to server with FTP user's credentials" option.

Any idea where to look for?
 
Well i DO see the shell in "Shell access to server with FTP user's credentials".

So i guess something is wrong with your setup. Maybe a PSA DB error ?

Some wrong entries in a PSA database table.

Not sure .. hope someone else can help you.
 
In the psa database once a chroot is assigned, then the shell value is kept in the table 'sys_users', but not before selecting it from the pulldown menu and saving it. Other than that, there are no other places in the psa database which would indicate if you can select it or not.

Check your /etc/shells file to see if it lists /usr/local/psa/bin/chrootsh or not

You can try using

/usr/local/psa/admin/bin/chrootmng

Usage:

--create --source=<source> --target=<target> [--safe]

--remove --source=<source> --target=<target>

--create create chrooted environment
--remove remove chrooted environment
--target=VAL the virtual host directory ("all" for all)
--source=VAL directory ot progs&libs patterns
--safe allow linking suid&sgid files
 
Yes the chrootsh is listed in /etc/shells.

Do I still need to use chrootmng to add the shell to the Plesk option?
 
Back
Top