Unix/Linux Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Cron Allow

UNIX for Dummies Questions & Answers


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-03-2004
Latha Nair Latha Nair is offline
Registered User
 
Join Date: Sep 2003
Last Activity: 7 October 2004, 6:25 AM EDT
Location: Pennsylvania, USA
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Cron Allow

I am trying to run a job once every hour starting at 7:00 am, and ending at 9:00 pm. After reading up on crontab command, I checked for the cron.allow file and cron.deny file. We do seem to have a cron.deny file, but there is no cron.allow file. The cron.deny file is empty. Do I setup a cron. allow file just by using editor? Please let me know. I read that a user cannot use the crontab command if the cron.allow file and the cron.deny file do not exist.

Thank you.
Latha Nair
Sponsored Links
    #2  
Old Unix and Linux 02-03-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
 
Join Date: May 2001
Last Activity: 24 March 2008, 9:43 PM EDT
Location: Chicago IL, USA
Posts: 1,006
Thanks: 0
Thanked 2 Times in 1 Post

Code:
User Commands                                          crontab(1)

NAME
     crontab - user crontab file

SYNOPSIS
     crontab [ filename ]

     crontab [ -elr ]  username

DESCRIPTION
     The crontab utility manages a user's access with  cron  (see
     cron(1M))  by copying, creating, listing, and removing cron-
     tab files.  If invoked without options, crontab  copies  the
     specified  file,  or the standard input if no file is speci-
     fied, into a directory that holds all users' crontabs.

  crontab Access Control
     Users: Access to crontab is allowed:

        o  if the user's name appears in /etc/cron.d/cron.allow.

        o  if  /etc/cron.d/cron.allow  does  not  exist  and  the
           user's name is not in /etc/cron.d/cron.deny.

     Users: Access to crontab is denied:

        o  if /etc/cron.d/cron.allow exists and the  user's  name
           is not in it.

        o  if /etc/cron.d/cron.allow does not  exist  and  user's
           name is in /etc/cron.d/cron.deny.

        o  if  neither  file  exists,  only  a  user   with   the
           solaris.jobs.user authorization is allowed to submit a
           job.

     Note that the rules for allow and deny apply to root only if
     the allow/deny files exist.

# cat /etc/cron.d/cron.deny
daemon
bin
smtp
nuucp
listen
nobody
noaccess
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
User entry in both cron.allow and cron.deny ksvaisakh Solaris 5 12-25-2009 12:39 PM
cron job starts new cron proccess ron76 Solaris 3 05-12-2008 01:07 AM
CRON usage for CRON job skyineyes UNIX for Dummies Questions & Answers 1 01-17-2008 09:17 AM
AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log Keith Johnson AIX 0 01-09-2008 07:32 PM
Cron : you are not authorized to use cron. Sorry. tt155 UNIX for Advanced & Expert Users 1 07-06-2005 10:37 AM



All times are GMT -4. The time now is 07:45 AM.