LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2012, 03:43 AM   #1
Reignfire
Member
 
Registered: Jun 2012
Posts: 56

Rep: Reputation: Disabled
Cron Daemon email: CleanAuth: Permission denied


Hi,

Since a couple of days i get an email every hour from my web/mailserver.

From: root@linuxserver (Cron Daemon)

/bin/sh: /root/scripts_linuxserver/CleanAuth: Permission denied

What is the reason behind this email?
 
Old 12-12-2012, 05:03 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just what it says; cron is trying to run that program and doesn't have enough perms to do so.


Check whose crontab is being run.
Check who the job is being run as
Check ownerships/perms & SELinux on the program
 
Old 12-12-2012, 06:42 AM   #3
Reignfire
Member
 
Registered: Jun 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Just what it says; cron is trying to run that program and doesn't have enough perms to do so.


Check whose crontab is being run.
Check who the job is being run as
Check ownerships/perms & SELinux on the program
It's running as root so it should have enough permissions.

-rw-r--r-- 1 root root 319 Dec 12 11:43 CleanAuth
 
Old 12-12-2012, 06:51 AM   #4
Reignfire
Member
 
Registered: Jun 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Reignfire View Post
-rw-r--r-- 1 root root 319 Dec 12 11:43 CleanAuth
mm i did a chmod +x CleanAuth on it but the thing is that the script is like 4 years old or something and never did the cron daemon send any complaint emails about it until recent.
 
Old 12-12-2012, 06:10 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, obviously something has changed.
Did adding 'x' fix it?
 
Old 12-13-2012, 01:59 AM   #6
Reignfire
Member
 
Registered: Jun 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Well, obviously something has changed.
Did adding 'x' fix it?
Yes it did.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron.hourly job permission denied issue ajayyadavmca Programming 11 06-27-2012 01:13 AM
Permission denied between clamav-daemon and amavisd-new on Ubuntu 9.04 . cviniciusm Linux - Server 5 02-01-2010 12:35 PM
[SOLVED] /bin/sh: /etc/cron.d/redial: Permission denied Farrukh Fida Linux - Newbie 8 01-27-2010 11:46 PM
cron/oracle: Permission denied rana_abdulwahid Linux - Newbie 2 04-28-2008 05:00 AM
cron daemon and email fakie_flip Programming 2 11-28-2007 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration