Koozali.org: home of the SME Server

Privileged user?

Privileged user?
« on: August 14, 2007, 03:26:45 PM »
Hi all,

I'm currently writing a PHP application that needs to add a cron job... As I don't want to do this as admin, I created the file /etc/cron.allow and added the name of a normal user in it. But when Itry to manually (through an SSH session) add a cron job as this user I get this:

Code: [Select]
bash-3.00$ crontab -u seb cront.cron
must be privileged to use -u

So obviously it won't work from my PHP app either.


So I have a couple of questions:

* How do I make a user privileged? (on the latest 7.2)
* Is there any security risk to do so? If yes is there any other way to add a cron job?

Thanks,

Seb.
« Last Edit: August 14, 2007, 03:28:16 PM by Old Lodge Skins »
"How high does the sycamore grows? If you cut it down, you'll never know!" - Vanessa Williams, Pocahontas.

Re: Privileged user?
« Reply #1 on: August 14, 2007, 10:34:52 PM »
Ok I've found a way to do it without using -u... I added the user www in /etc/cron.allow and in my PHP script I run crontab without putting a user; It works fine. Is there any security risk in doing so?

Seb.
"How high does the sycamore grows? If you cut it down, you'll never know!" - Vanessa Williams, Pocahontas.