• 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

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