Home Man
Search
Today's Posts
Register

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

Tags
solaris

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 09-25-2009
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
# 2  
Old 09-25-2009
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.
# 3  
Old 09-26-2009
Yeah...its correct....thanks for the reply..
# 4  
Old 09-26-2009
Quote:
Originally Posted by ksvaisakh
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
# 5  
Old 09-26-2009
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
# 6  
Old 12-25-2009
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.
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron entry fretagi Solaris 2 04-27-2018 09:09 AM
Cron JOb Entry mahesh300182 Shell Programming and Scripting 10 03-19-2013 09:17 AM
How are cron.allow and cron.deny read? pereyrax UNIX for Dummies Questions & Answers 3 08-03-2012 12:16 PM
cron entry Mani_apr08 Solaris 9 08-26-2011 09:07 AM
cron entry everurs789 UNIX for Advanced & Expert Users 1 02-22-2011 01:35 PM
cron entry everurs789 UNIX for Dummies Questions & Answers 3 01-24-2011 10:53 AM
Cron Entry King Nothing Shell Programming and Scripting 2 04-13-2009 04:06 AM
cron entry rujus UNIX for Dummies Questions & Answers 7 01-29-2007 04:36 PM
cron entry error capeme Shell Programming and Scripting 6 10-26-2006 09:05 AM
Cron entry rramanuj AIX 1 11-01-2005 01:35 PM


All times are GMT -4. The time now is 01:15 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password