Edit a specific users crontab with PHP? (Solved)

General discussion about RuneAudio. Do not post any support or feature requests here.

Edit a specific users crontab with PHP? (Solved)

Postby irishwill2008 » 28 Sep 2016, 16:07

Last edited by irishwill2008 on 30 Sep 2016, 11:14, edited 1 time in total.
irishwill2008
 
Posts: 157
Joined: 26 Jul 2016, 14:49
Location: Ireland

Re: Is it possible to edit a specific users crontab with PHP

Postby irishwill2008 » 30 Sep 2016, 11:13

I used sudo command to accomplish this.

Create a new user, give him sudo full access without the need of password by editing the sudoers file in /etc/sudoeres so use username ALL=(ALL) NOPASSWD: ALL

Then make sure to use full path to the commands in php ;)
irishwill2008
 
Posts: 157
Joined: 26 Jul 2016, 14:49
Location: Ireland

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 16 guests
cron