1

I installed vesta panel on my ubuntu server a few months ago and then removed it for some reasons, today only I was setting up fail2ban and also setup sendmail on the server and now my Yahoo mail is full of emails from subject :

 Cron <admin@asinnetworks> sudo /usr/local/vesta/bin/v-update-sys-queue backup

body states

sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts

I do not have any folder name /usr/local/vesta/bin on my server I do not know how to stop my server from sending me these mails

3

Find the user with this cronjob

Thats the output from a cron job. do:

sudo grep -R "/usr/local/vesta/bin/v-update-sys-queue backup" /etc/cron* /var/spool/cron/crontabs

that will show hopefully what cron job is causing the output you can then ever delete it or direct its output to /dev/null

Delete the cronjob

Okay now you know the user the cronjob is under you can remove it or silence it.

sudo crontab -u admin -e

then delete the line that contains /usr/local/vesta/bin/v-update-sys-queue backup this will stop the job happening this should not be a problem as you no longer use it.

Or Silence the cronjob

or you can silence the output by adding the redirect as below:

*/5 * * * * sudo /usr/local/vesta/bin/v-update-sys-queue backup > /dev/null 2>&1
| improve this answer | |
  • I guess the mails stopped from coming let me wait for sometime and see. I will mar this answer as a solution then. As i typed this I got two emails again, plus grep -R "command" just waits on terminal and does nothing – Khan Shahrukh Feb 26 '15 at 19:26
  • Sorry I dont understand the grep -R command should not just wait, it should return nothing or the files that match? – squareborg Feb 26 '15 at 19:30
  • Try the adjusted grep command – squareborg Feb 26 '15 at 19:36
  • got this in return s8.postimg.org/4wmb20vcl/output.png – Khan Shahrukh Feb 26 '15 at 19:55
  • see adjusted answer. – squareborg Feb 26 '15 at 20:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.