Files in website /root after Cron Job in Ubuntu 20.04.3 LTS ISPConfig 3.2.7p1

Discussion in 'General' started by zapyahoo, Feb 18, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. zapyahoo

    zapyahoo Member

    Hello guys,
    I created ispconfig -> Sites -> Cron Jobs for a site 16 Feb. Everything worked as expect. But today checking the server there's a large amount of files and folders belonging to root inside the web client root folder. Is this expected behaviour?
    ls -la
    total 156
    drwx------ 2 web1 client1 4096 Dec 2 16:33 .ssh
    drwxr-xr-x 2 web1 client1 4096 Dec 3 00:00 backup
    drwxr-xr-x 2 root root 4096 Feb 16 15:07 bin
    drwxr-xr-x 2 web1 client1 4096 Dec 2 16:33 cgi-bin
    drwxr-xr-x 2 root root 4096 Feb 16 15:07 dev
    drwxr-xr-x 7 root root 4096 Feb 16 15:07 etc
    drwxr-xr-x 3 web1 root 4096 Feb 16 15:07 home
    drwxr-xr-x 4 root root 4096 Feb 16 15:07 lib
    drwxr-xr-x 2 root root 4096 Feb 16 15:07 lib64
    drwxr-xr-x 2 root root 4096 Feb 18 00:01 log

    drwx--x--- 2 web1 client1 4096 Feb 18 00:00 private
    drwxr-xr-x 3 root root 4096 Feb 16 15:07 run
    drwxr-xr-x 2 root root 4096 Dec 2 16:33 ssl

    drwxrwxrwx 2 web1 client1 73728 Feb 16 15:29 tmp
    drwxr-xr-x 6 root root 4096 Feb 16 15:07 usr
    drwxr-xr-x 5 root root 4096 Feb 16 15:07 var

    drwx--x--x 7 web1 client1 4096 Feb 11 13:33 web
    drwx--x--- 2 web1 client1 4096 Dec 2 16:33 webdav
     
    Last edited: Feb 18, 2022
  2. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    if you created a chrooted cron, then it needs the chrooted (jailkit) environment, which is all those extra folders you're seeing.
    you'd see them all if you created a jailkitted ssh user for a site as well.
     
  3. zapyahoo

    zapyahoo Member

    Hi nhygbtvfr, thanks for your reply.
    I haven't created any ssh user and I used the options provided in ispconfig -> Sites -> Cron Jobs (I don not see those options here).
    And in ispconfig -> Sites -> Shell-User (is empty...No results.)
     
  4. zapyahoo

    zapyahoo Member

    If this isn't expected, this could maybe be an issue with the field validation?
    ispconfig -> Sites -> Cron Jobs -> Command to run (commands are executed via sh, urls via wget):
    ***EDITED***
    I remember inserting wget httsp://url
    and that did not work... afterwards I removed wget and just left the url.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The files are a jail and a jail gets created when you use cronjobs. So it's expected that they are there when you create a cronjob like "wget httsp://url".
     
  6. zapyahoo

    zapyahoo Member

    Thanks for your time till. If it's expected and safe... all is good.
     
  7. dampel

    dampel New Member

    The same issue with new folders. lib64, dev, etc, var was created in the home website catalog.
    Its normal ? they was created after cronjob added
     
  8. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    It is normal for the folders to be created when you created ssh for the site.
     
Thread Status:
Not open for further replies.

Share This Page