• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

shell

D

dericknwq

Guest
How do I make more commands available to users in Shell?

Currently only a small amount of commands are available to Shell users. I would like to add in wget or lynx for them. How can I do so? Thank you.
 
Give them something like /bin/bash
in the "Shell access to server with FTP user's credentials"
 
The thing is I wanted a chrooted shell instead of having the user able to cd around the server.

If Shell is set to /bin/bash, the user can even run commands like rpm and locate etc. I don't wish to have that happening. Rather I would like to have commands like tar, wget available in the chroot environment.

I am not sure if it is alright to just copy the /bin/wget into /var/www/vhosts/chroot/bin
 
Here ya go:
http://kb.swsoft.com/article_16_818_en.html

Chrooted shell provides limited functionality only, it only allows to
use very common commands such as `cp`, `mv`, `mkdir` and so on. `tar` is not included into chrooted shell as well as a lot of other system
utilities. You can check /home/httpd/vhosts/chroot for details.

If you want to add more files to chroot for all the domains, you can copy
them to the appropriate subfolder in /home/httpd/vhosts/chroot and run two
commands:

/usr/local/psa/admin/sbin/chrootmng --remove --source=/home/httpd/vhosts/chroot --target=all

/usr/local/psa/admin/sbin/chrootmng --create --source=/home/httpd/vhosts/chroot --target=all
 
Hmm, I just tried this with wget and I get this now:
bash-2.05b$ wget
wget: error while loading shared libraries: libssl.so.0.9.7: cannot open shared object file: No such file or directory
 
Oh ok, thanks! Isn't there a better Plesk documentation, the knowledge base still doesn't really explain what the command does etc. There should be a pro plesk administrator documentation. :D
 
You will need to copy the require libs into the chroot/lib folder as well.

Here is what I did
Code:
cp /lib/libssl.so.* /var/www/vhosts/chroot/lib/

Then just recreate using chrootmng.
 
Back
Top