LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-18-2023, 09:08 AM   #1
myjess
LQ Newbie
 
Registered: Apr 2010
Posts: 11

Rep: Reputation: 0
In the Oracle Linux documentation, why is there no mention of what happens when these cron files are empty?


This may be a pedantic question, and I have asked it in the Oracle forum, but I thought I would cast my net wider.

In the Oracle Linux documentation, why is there no mention of what happens when these cron files are empty?
ie: Only root can use crontab.

Page 35:
https://docs.oracle.com/en/operating...MONITORING.pdf

"Controlling Access to Running cron Jobs
If permitted, users other than root can configure cron tasks by using the crontab
command. All user-defined crontab-format files are stored in the /var/spool/cron directory
with the same name as the users that created them.
root can use the /etc/cron.allow and /etc/cron.deny files to restrict access to cron.
crontab checks the access control files each time that a user tries to add or delete a cron
job. If /etc/cron.allow exists, only users listed in it are allowed to use cron, and /etc/
cron.deny is ignored. If /etc/cron.allow does not exist, users listed in /etc/cron.deny are
not allowed to use cron. If neither file exists, only root can use cron. The format of
both /etc/cron.allow and /etc/cron.deny is one user name on each line."

And it seems to be ditto for the at command.

Question that could be asked: “Why not just delete these files.”
Answer that could be given: “I do not know the environment, there could be AIDE's or PenTesting that specifically looks for these files and if they are empty.”

Thank you.
 
Old 09-18-2023, 11:01 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Quote:
And it seems to be ditto for the at command.
Which files? Are you referring to cron.allow and cron.deny? I expect many systems don't have those files, I don't. If as a user, you do either crontab -l (to list) or crontab -d (to edit) what you see as a user is the same as the file discussed in /var/spool/cron/crontabs/?username? file. I expect the file in that location (/var/spool/cron/crontabs) is created when the user creates a cron job. I'm not really that familiar but it makes sense that is the case.
 
  


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
LXer: Keep an eye on these versions – Comparing the performance of Oracle Linux 7 vs Oracle Linux 8 using the Phoronix Test Suite LXer Syndicated Linux News 0 03-08-2022 05:42 AM
cron.hourly cron.weekly cron.monthly and 0anacron. Are they necessary? glore2002 Debian 2 09-30-2009 08:57 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 01:57 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:07 PM.

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