Hi! I'm no expert on Linux, but I've run into the same issue before. It
turns out these scripts need very tight file permissions. I believe the
reason is that if every user has access to editing your script, they
delete/can embed whatever code they wish and it'll in turn get executed as
root. That's a big security concern and I'm not surprised Linux won't add
them to crontab.

On Mon, Apr 25, 2011 at 12:00 PM, etika ahuja <[email protected]> wrote:

> i have made a cron file in /etc/cron.d directory
>
> i am appending a cron file fi in this directory through a jsp which is
> executed by tomcat .
> The permissions of the file is made
> -rwxrwxrwx 1 root root 462 2011-04-25 11:20 fi
>
> and i am running this file through root
> but its not executing
> but on changing the permissions of the file to 644 the script starts
> executing.(why it is happening so?)
>
> why the file stop executing when its permissions are changed to 777
>
> --
> LUG@IITD - http://lug-iitd.org/Footer
>



-- 
Rishab Arora
+91 9818130327

-- 
LUG@IITD - http://lug-iitd.org/Footer

Reply via email to