• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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