1833738 Members
2763 Online
110063 Solutions
New Discussion

Re: cron rwx

 
khilari
Regular Advisor

cron rwx

Hi people, well i transferred crons from one system to the other. Now, what i am concerned about is its rwx. On the first system i had

-r--r--r-- 1 root adm 811 Sep 15 1999 adm
-r--r--r-- 1 root hbo 459 Sep 15 1999 hbo
-r-------- 1 root sys 2806 May 21 07:56 root
-r-------- 1 root hbo 1300 May 19 09:33 sqldba

when i transferred it to the other it became

-rw-rw-rw- 1 root sys 28 Jun 1 10:20 adm
-rw-r----- 1 root sys 811 Jun 6 14:41 hbo
-rw-rw-rw- 1 root sys 14 Jun 1 10:19 sqldba
-rw--r---- 1 root sys 156 May 31 09:50 root

Now, are their any implications as to they not working right because of the change in rwx status change.

I will be putting entries in the cron.allow for the users who were in the first system. Any thing i should be worried about...
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: cron rwx

The modes are less restrictive than they were originally so that is not your problem. Your problem (I strongly suspect) is that the cron daemon doesn't have a clue about these new entries. When you say you "transferred" cron I think that means that you simply copied the files. If so, the cron daemon needs to be told that things have changed. Do a ps -e | grep cron to get the PID of the cron daemon and then do a kill -1 CRONPID. THe proper way to update the cron daemon is crontab < cronfile. Crontab then automatically send a SIGHUP (kill -1) to the daemon.
If it ain't broke, I can fix that.
DCE
Honored Contributor

Re: cron rwx

You should definitely remove the world writable flag.

Actually I would go with the same settings from the original system - assuming everything ran fine there.
James R. Ferguson
Acclaimed Contributor

Re: cron rwx

Hi:

I'm in agreement with Clay as to the reason for your inoperative crontabs. Another way to restart 'cron' and thereby provide it the knowledge it needs is to do:

# /sbin/init.d/cron stop
# /sbin/init.d/cron start

This also has the effect of renaming '/var/adm/cron/log' to '/var/adm/cron/OLDlog'.

Regards!

...JRF...
Ninad_1
Honored Contributor

Re: cron rwx

What I understand from the question is that - is there any problems in having these changed permissions in working of crontab or cron will work without any problems- and not that user is facing any problems at the moment.
The answer is there should not be any problem for cron and it will work properly with these changed permissions as well.
But the above replies are very good advise - 1. change the permissions as they are shown in your original permissions - there is no need to give wriet permissions to other also not required to give permissions to group.
2. You need to restart cron as already mentioned above so that cron reads all these updated files.

Regards,
Ninad