Re: Can I change group and permissions on the messages file?
- From: "Ohmster" <theohmster@xxxxxxxxxxx>
- Date: 25 Sep 2006 01:30:00 -0700
Oh for Chrissakes! I gotta use google groups again. It seems that my
free server will not let me post anymore. nntp.aioe.org
Giving me this message when I try to post now:
441 Duplicate message (MDS)
Whatever that means, it sure is not a duplicate message from me, this
sucks. Does anyone have a free NNTP server that works for the Linux
newsgroups that is current and allows posting? The aioe server was
really good until this stuff started happening.
Bit Twister <BitTwister@xxxxxxxxxxxxxxxx> wrote in
news:slrneheh06.476.BitTwister@xxxxxxxxxxxxxxx:
Uh well, I used webmin to add the script as a daily task and it does
not show up the way you show it, it does show up with a crontab -l
though.
Yep, your method created a seperate cron entry to execute a script.
It did.
What I showed is the cron job which uses
run-parts
to execute each scrip indicated in the directory given as an argument.
On my system run-parts would run the jobs in the folling order.
$ ls -al /etc/cron.daily
You do mean "ls -la" right, and not "ls -al"? This is the second
message from you where I noticed this typo. Makes me wonder if it is a
typo or not.
-rwxr-xr-x 1 root root 1,024 certwatch
lrwxrwxrwx 1 root root 23 ckupdate_cron -> /site/bin/ckupdate_cron
-rwxr-xr-x 1 root root 180 logrotate
-rwxr-xr-x 1 root root 402 makewhatis.cron
-rwxr-xr-x 1 root root 126 mlocate.cron
lrwxrwxrwx 1 root root 27 msec -> /usr/share/msec/security.sh
-rwxr-xr-x 1 root root 118 rpm
-rwxr-xr-x 1 root root 101 tetex.cron
-rwxr-xr-x 1 root root 403 10:45 tmpwatch
Yeah I have that. The daily stuff is like a whole lot of stuff under
one entry, I cannot edit this from webmin. You could delete the whole
bunch but cannot edit it for some reason. I can find it like you did
however...
[root@ohmster ~]# ls -la /etc/cron.daily
total 100
drwxr-xr-x 2 root root 4096 Jan 19 2006 .
drwxr-xr-x 104 root root 12288 Sep 25 03:46 ..
lrwxrwxrwx 1 root root 28 Dec 10 2005 00-logwatch ->
.../log.d/scripts/logwatch.pl
-rwxr-xr-x 1 root root 418 Nov 19 2004 00-makewhatis.cron
-rwxr-xr-x 1 root root 135 Aug 18 2004 00webalizer
-rwxr-xr-x 1 root root 276 Sep 28 2004 0anacron
-rw-r--r-- 1 root root 797 Oct 19 2004 certwatch
-rwxr-xr-x 1 root root 180 Oct 19 2004 logrotate
-rwxr-xr-x 1 root root 2133 Nov 23 2004 prelink
-rwxr-xr-x 1 root root 104 Nov 1 2004 rpm
-rwxr-xr-x 1 root root 82 Aug 9 2005 slocate.cron
-rwxr-xr-x 1 root root 271 Aug 22 2005 squirrelmail.cron
-rwxr-xr-x 1 root root 100 Jan 11 2006 tetex.cron
-rwxr-xr-x 1 root root 286 Aug 13 2004 tmpwatch
-rwx------ 1 root root 172 May 18 2005 webalizer_ftp
-rwxr-xr-x 1 root root 136 Jul 5 2005 yum.cron
[root@ohmster ~]#
(Oh, I see the reason now, they are all separate files that run when
the cron.daily directory is run as a command.)
Now in the /etc/cron.daily directory, all these files do exist so I
would imagine that one could edit, add, or delete files if one wanted
to.
Now if I have your chmod in ckupdate_cron script,
logrotate could come along and undo the priv change.
I do have a logrotate file in there. Let's see what's in it...
---------------------------------------------------------------------
[root@ohmster cron.daily]# cat logrotate
#!/bin/sh
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with
[$EXITVALUE]"
fi
exit 0
[root@ohmster cron.daily]#
---------------------------------------------------------------------
Does it look like something that can change perms to you?
Holy crap! Super late, gotta go to bed. 'nite bit. Besides, the server
won't let me post anymore. :(
--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
.
- Follow-Ups:
- Re: Can I change group and permissions on the messages file?
- From: Bit Twister
- Re: Can I change group and permissions on the messages file?
- From: Chris F.A. Johnson
- Re: Can I change group and permissions on the messages file?
- References:
- Can I change group and permissions on the messages file?
- From: The Ohmster
- Re: Can I change group and permissions on the messages file?
- From: Ohmster
- Re: Can I change group and permissions on the messages file?
- From: Bit Twister
- Re: Can I change group and permissions on the messages file?
- From: Ohmster
- Re: Can I change group and permissions on the messages file?
- From: Bit Twister
- Re: Can I change group and permissions on the messages file?
- From: Ohmster
- Re: Can I change group and permissions on the messages file?
- From: Bit Twister
- Re: Can I change group and permissions on the messages file?
- From: Ohmster
- Re: Can I change group and permissions on the messages file?
- From: Bit Twister
- Can I change group and permissions on the messages file?
- Prev by Date: Re: Were is SuSE 8.0? =)
- Next by Date: mc under Eterm
- Previous by thread: Re: Can I change group and permissions on the messages file?
- Next by thread: Re: Can I change group and permissions on the messages file?
- Index(es):