Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

User entry in both cron.allow and cron.deny

Solaris


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-25-2009   -   Original Discussion by ksvaisakh
ksvaisakh's Unix or Linux Image
ksvaisakh ksvaisakh is offline
Registered User
 
Join Date: Sep 2009
Last Activity: 31 January 2015, 1:01 PM EST
Location: MI,United States
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
User entry in both cron.allow and cron.deny

Hello All,

Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab???

Thanks in advance
Vaisakh
Sponsored Links
    #2  
Old Unix and Linux 09-26-2009   -   Original Discussion by ksvaisakh
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline
Registered User
 
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
I am not in front of a Solaris system at the moment but as far as I recall cron.allow is checked before cron.deny. Therefore if the user is in both, the user will have permission.

Easy to check, log is as a user that is both in cron.allow and cron.deny and try do a crontab -l.
Sponsored Links
    #3  
Old Unix and Linux 09-26-2009   -   Original Discussion by ksvaisakh
ksvaisakh's Unix or Linux Image
ksvaisakh ksvaisakh is offline
Registered User
 
Join Date: Sep 2009
Last Activity: 31 January 2015, 1:01 PM EST
Location: MI,United States
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah...its correct....thanks for the reply..
    #4  
Old Unix and Linux 09-26-2009   -   Original Discussion by ksvaisakh
incredible's Unix or Linux Image
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
Quote:
Originally Posted by ksvaisakh View Post
Yeah...its correct....thanks for the reply..
Are you sure??? From my understanding and experience, I remember correctly that the cron.deny is read by default. Solaris don't have a cron.allow file by default as well(just to add-on)
btw for your ref Controlling Access to crontab (System Administration Guide, Volume 2) - Sun Microsystems
Sponsored Links
    #5  
Old Unix and Linux 09-26-2009   -   Original Discussion by ksvaisakh
ksvaisakh's Unix or Linux Image
ksvaisakh ksvaisakh is offline
Registered User
 
Join Date: Sep 2009
Last Activity: 31 January 2015, 1:01 PM EST
Location: MI,United States
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Its my mistake.

bash-3.00# su test
$ crontab -l
crontab: can't open your crontab file.


This user test is having entry in both the files.

Thanks
Sponsored Links
    #6  
Old Unix and Linux 12-25-2009   -   Original Discussion by ksvaisakh
sixty_nine's Unix or Linux Image
sixty_nine sixty_nine is offline
Registered User
 
Join Date: May 2008
Last Activity: 27 December 2012, 6:41 PM EST
Location: Dhaka, Bangladesh
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
I have just checked this on my system. If a user exist on both file then he will be allowed. Because if you are not allowed to use crontab then you will get the following msg after running crontab -l command:
crontab: you are not authorized to use cron. Sorry.
Sponsored Links
Closed

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
Cron Entry King Nothing Shell Programming and Scripting 2 04-13-2009 05:06 AM
cron entry rujus UNIX for Dummies Questions & Answers 7 01-29-2007 05:36 PM
cron entry error capeme Shell Programming and Scripting 6 10-26-2006 10:05 AM
Cron job entry not running hkapil Shell Programming and Scripting 1 11-21-2005 10:46 AM
Cron entry rramanuj AIX 1 11-01-2005 02:35 PM



All times are GMT -4. The time now is 02:02 PM.