Cron job run as a different user


#1

I’m seeking a way to run a cronjob as a different user, but with little success to date.
The usual way of doing it i.e.
echo ‘password’ | sudo -S username command
doesn’t work. Any ideas?


#2

u cant use sudo, since u dont have that kind of permissions.
but u can create a new user on your panel and then login via ssh to that user.
then u can create a new cron for that user.


BUGabundo :o)
promo here
50$ discount with promo code “BUG50” on ALL plans
Free lifetime Domain with “BUGDOMAIN” promo code