Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Remove a cron on a resellers account

Discussion in 'General Discussion' started by ThunderHostingDotCom, Feb 7, 2004.

  1. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    We terminated a reseller & now I am getting the below e-mail daily. Where do I go to delete it?

    chdir to /home/luckycom/catalogs/luckycom: No such file or directory
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Should be either the /var/spool/cron/username or /etc/crontab file. Those files and the /etc/cron.xxx directories are the only places for cron jobs that I know of.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    /var/spool/cron/luckycom - comes up blank

    &

    /etc/crontab - has the below in it...


    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/

    # run-parts
    01 * * * * root run-parts /etc/cron.hourly
    02 4 * * * root run-parts /etc/cron.daily
    22 4 * * 0 root run-parts /etc/cron.weekly
    42 4 1 * * root run-parts /etc/cron.monthly
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Anything unusual in the
    /etc/cron.hourly
    /etc/cron.daily
    /etc/cron.weekly
    /etc/cron.monthly
    directories?

    Any chance of a different username in the /var/spool/cron/ directory?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    I just looked in all of those files & they are ALL empty. :-(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    The only thing I can think of then would be to search the whole server for anything owned by luckycom or anything with that in the name.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    GREAT idea! Now what is the best way to search our server? SSH I imagine but what command(s) do I use?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    man find
    man locate

    Probably others that I cant think of right now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    I tried...

    man find luckycom
    man locate luckycom

    but they both just put me in the help file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Angel78

    Angel78 Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    413
    Likes Received:
    1
    Trophy Points:
    318
    man (command) = gives manual for that command
     
  11. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    Ahhh, so to find all luckycom?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    That's why I put man "command". It would give you the details about how they work.

    You want

    cd /
    find -user luckycom

    The first command is to go to the /directory so the search will be everywhere. It will list all files with luckycom as the user. It will take several minutes to search the whole server.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    When I first started using shell, I was typing man "anything I knew of" to learn about all the commands. There was a lot of reading to do so I printed out most of what I was getting. Very thick book. :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    find: invalid argument `luckycom' to `-user'
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    That means there are no files with user luckycom. Try
    find -group luckycom
    to see if any files have it as the group.

    It'll likely do the same thing.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Are you still getting the emails?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    Yes I am.
    The Subject of the email reads...
    Cron <root@thunder> /usr/local/cpanel/3rdparty/interchange/bin/expireall -r

    & the message reads...
    chdir to /home/luckycom/catalogs/luckycom: No such file or directory
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Sounds like you may have to do a search for files containing luckycom to find the culprit. I don't remember how that's done because when I need to search for file contents, I just search a copy of the server on my own computer.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice