jailkit - how do I jk_cp once the vhost is created
Hello,
Let say I've just created a new host (website)... But I now need to copy a folder via jailkit...
my website is web21, and the dir I'd like to copy is [ /opt/node ]. I am logged in as root of the system (ssh).
root@host:/var/www# jk_cp -v -j /var/www/clients/client1/web21 /opt/node
Create directory /var/www/clients/client1/web21/opt
Traceback (most recent call last):
File "/usr/sbin/jk_cp", line 116, in <module>
main()
File "/usr/sbin/jk_cp", line 113, in main
startcopy(config, jail, args)
File "/usr/sbin/jk_cp", line 46, in startcopy
jk_lib.copy_binaries_and_libs(chroot,filestocopy,config['force'] , config['verbose'], try_hardlink=config['hardlink'], retain_owner=config['retainowner'])
File "/usr/share/jailkit/jk_lib.py", line 635, in copy_binaries_and_libs
create_parent_path(chroot,os.path.dirname(file), be_verbose, copy_permissions=1, allow_suid=0, copy_ownership=retain_owner)
File "/usr/share/jailkit/jk_lib.py", line 457, in create_parent_path
os.mkdir(jailpath, 0755)
OSError: [Errno 13] Permission denied: '/var/www/clients/client1/web21/opt'
Am I doing something wrong ?
NB: I know that I can go to the server config > [ tap: jail] to edit which dirs/path/executables will be copied at the 'website' creation. It does not work on the shell user creation on on the shell or website/update. (I'm not asking you to support this)
It's like jailkit features are locked once the website is created.. and if you change your jaillkit settings, you have to re create the website before ispconfig can take the new jailkitt settings into consideration.
Regards.