• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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