root cron was override w/ 3rd party software


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers root cron was override w/ 3rd party software
# 1  
Question root cron was override w/ 3rd party software

Hi Guys,

I'm new in Unix Environment.

Any Unix Guru around...I need help. My question is, is it possible that the root cron could be override with 3rd party software?How can it happen. Another thing, how the cron job works?, I mean how the Unix process the cron job , I don't have an idea about cron, any insight about the cron, what would be the implication if I modified the contents of it.

Any comments would be appreciated..

Thanks in advance.
# 2  
Cron is controlled by a set of files called "crontabs". There is the master file in /etc/crontab (Red Hat Linux), along with crontab files for the users in /var/spool/cron/. In the latter directory, the files are given the same name as a user's login ID.


Crontab location:
/var/spool/cron
/etc/crontab

In RH Linux, it is a little easier for the sysadmin to set up cron jobs than in other distributions. The /etc/crontab file automatically executes items in several subdirectories at regular periods.

/etc/cron.hourly
/etc/cron.daily
/etc/cron.weekly
/etc/cron.monthly

All the sysadmin needs to do is drop a shell script or a link to an executable in one of the directories and it will automatically be run at the appropriate time.

Setting up a user-level crontab is somewhat different. The files in /var/spool/cron are not edited directly. Instead, a program called "crontab" is used to manipulate them. Depending on system security, all users, only some, or just the root user will be able to use crontab (see man crontab /etc/cron.allow and /etc/cron.deny for more information). SYNOPSIS crontab [ -u user ] file
crontab [ -u user ] { -l | -r | -e }

file store the specified file as the current crontab
-u user the crontab file being manipulated is for
-l display the current crontab
-r remove current crontab
-e edit the current crontab (editor depends on system
variables and will probably be vi unless your sysadmin
has changed it).

If you are not familiar with the systemwide default editor, it is probably best to create/edit the file with one you are familiar with and use the file option with the first command.

Crontab configuration: Blank lines, leading spaces, and tabs are ignored. Lines that start with a # are comments and are ignored. Comments are not allowed to be on the same line as cron commands; they will be assumed to be part of the command. Comments are not allowed on the same line as environment settings for similar reasons.


Syntax
Environment settings take the format of

name = value

(The spaces around the = are optional.)

Each cron command has 5 time and date fields, followed by a user name, and if
this is the system crontab file, it will be followed by a command. Commands are
executed when the time specified by the time/date fields matches the
current time.

field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 0-31
month 0-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)

A field may be an asterisk (*), which always stands for ``first to
last''. So used in the hour field, it means 'every hour from 00:00 to
24:00"

Example Crontab:

# r----minute
# | r-----hour
# | | r------day of the month
# | | | r------month
# | | | | r------day of the week
# | | | | | |------ command to run ------------->
# | | | | | |
5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1
# run five minutes after midnight, every day
15 14 1 * * $HOME/bin/monthly

# run at 2:15pm on the first of every month -- output mailed to paul
0 22 * * 1-5 mail -s "It's 10pm" joe%Joe,%%Where are your kids?%

# print out the message at 4:05 every sunday.
5 4 * * sun echo "run at 5 after 4 every sunday"

If this file were saved as "paul.ct" then
crontab -u paul paul.ct

would be used to store the crontab for the user paul.

For more information:

man cron
# 3  
Killerserv, thanks for your response, I appreciate it. 'wish I could share something with you too, but I know I need to learn more..I think microsoft needs to have this kind of message forum too.....hum hum,,,anyway 'hope to hear from you again...
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #612
Difficulty: Medium
In Python, they are five numeric types - integers, long integers, floating point, infinite, and complex numbers.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Identifying all the 3rd party software/executable files in RHEL 5.6

I have used yum list installed and rpm -qa commands. But these provide only the source packages, I want the specific software name. And how to identify any software that is installed without the yum or rpm package system. I tried compgen -c but it doesn't works with rhel5.6 (1 Reply)
Discussion started by: PrabhaPatra4567
1 Replies

2. Shell Programming and Scripting

No such file or directory for 3rd party software

I am trying to use the KiFMM3D software with my code. I am compiling code in C++ and everything looks fine but I am getting an "no such file or directory" error regarding the KiFMM3d code. The exact error message is : In file included from... (0 Replies)
Discussion started by: larry burns
0 Replies

3. UNIX for Dummies Questions & Answers

Problem compiling 3rd party g++ program

I'm trying to compile a 3rd party program used for solid-state chemistry that calculates pore characteristics of an input material. The program was written between 2000 and 2006, so I believe the problem is that the headers used are outdated, but I'm not terribly computer savvy (and a complete... (1 Reply)
Discussion started by: motrax
1 Replies

4. UNIX for Dummies Questions & Answers

Can you override root shell?

Hi, I'm trying to figure out the logic of my user shell and root shell :confused: This might be best illustrated with an example. If I log into the linux host I'm using and run the following: -bash-3.2$ which python /usr/local/bin/python I now run sudo bash to become root and run the... (2 Replies)
Discussion started by: cuchulainn
2 Replies

5. Linux

Will installing LINUX mean reinstalling my 3rd party apps?

Hi all, Long time UNIX admin, first time LINUX user. So I'm finally at the last straw with Windows. I hate it. I've always hated it but the wife was scared of change so I kept it going. But Window's insistence on "protecting" me by preventing me access to certain areas created hours of work... (14 Replies)
Discussion started by: Korn0474
14 Replies

6. Web Development

override rw-r--r-- root/staff for .htaccess?

Hi, I get this question in the console when I try to delete a htaccess file. What does it mean ? override rw-r--r-- root/staff for .htaccess? thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies

7. AIX

finding 3rd party Applications installed on AIX

Hi,. I want to know how to find out 3rd party application installed on aix, example Oracle database if it is installed on aix box it is not showing as installed using lslpp -l command Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

8. Solaris

Findout 3rd party softwares in Linux/Solaris server

Hi all, how to find 3rd party softwares like Oracle,phpldapadmin,Citrix etc (other than packages) which are installed on a linux box. Please guide me to get this info'n on LINUX/SOLARIS. Thanks in advance, Uday (0 Replies)
Discussion started by: uday123
0 Replies

9. AIX

3rd Party Utilities to read Syslog

I'm new to UNIX / AIX and I'm trying to determine the best way to monitor the SYSLOG output generated from our RS6000. I apologize if there is another thread that already addresses this issue, I scanned the threads, but didn't see anything. Thanks in advance, Rosemary (0 Replies)
Discussion started by: ratrahan
0 Replies

10. Shell Programming and Scripting

How to pass variables to 3rd party unix menu?

Hello, I was wondering if it is possible to pass data to a unix driven 3rd party menu. Changing the code is out of the question. I have a menu with various options and I would like a ksh to execute the menu and input the required fields. For example. Main menu 1. Company Name 2. blah... (3 Replies)
Discussion started by: ctcuser
3 Replies

Featured Tech Videos