User 'news' will not do cron job - Slackware

This is a discussion on User 'news' will not do cron job - Slackware ; Hi, I am using Leafnode 2 on Slackware 12 and have a user 'news'. All is working well but for some reason news will not do the following cron jobs: 10 21 * * * /usr/sbin/texpire -vvv >/home/andrew/.texpirelog 2>&1 15 ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: User 'news' will not do cron job

  1. User 'news' will not do cron job

    Hi,

    I am using Leafnode 2 on Slackware 12 and have a user 'news'. All is
    working well but for some reason news will not do the following cron
    jobs:

    10 21 * * * /usr/sbin/texpire -vvv >/home/andrew/.texpirelog 2>&1
    15 * * * * /usr/sbin/fetchnews -vvv >/home/andrew/.fetchnewslog 2>&1

    But this works flawlessly as a /root/ crontab. I do /not/ have a
    cron.allow or .deny file and I am more than a little puzzled as to why
    this does not work. I can set a crontab for myself as a user quite
    easily.

    Any thoughts?

    Andrew

    PS I have posted a similar question on Linuxquestions.org and I hope
    this does not count as multi-posting.
    --
    http://www.andrews-corner.org

  2. Re: User 'news' will not do cron job

    On Wed, 23 Jan 2008 18:09:01 +1100, andrew wrote:

    >Hi,
    >
    >I am using Leafnode 2 on Slackware 12 and have a user 'news'. All is
    >working well but for some reason news will not do the following cron
    >jobs:
    >
    >10 21 * * * /usr/sbin/texpire -vvv >/home/andrew/.texpirelog 2>&1
    >15 * * * * /usr/sbin/fetchnews -vvv >/home/andrew/.fetchnewslog 2>&1
    >
    >But this works flawlessly as a /root/ crontab. I do /not/ have a
    >cron.allow or .deny file and I am more than a little puzzled as to why
    >this does not work. I can set a crontab for myself as a user quite
    >easily.
    >
    >Any thoughts?


    Permissions? You're mixing 'news' with 'andrew', do the commands work
    when manually invoked?

    Grant.
    --
    http://bugsplatter.mine.nu/

  3. Re: User 'news' will not do cron job

    On 2008-01-23, Grant wrote:
    > On Wed, 23 Jan 2008 18:09:01 +1100, andrew wrote:


    >>I am using Leafnode 2 on Slackware 12 and have a user 'news'. All is
    >>working well but for some reason news will not do the following cron
    >>jobs:
    >>
    >>10 21 * * * /usr/sbin/texpire -vvv >/home/andrew/.texpirelog 2>&1
    >>15 * * * * /usr/sbin/fetchnews -vvv >/home/andrew/.fetchnewslog 2>&1
    >>
    >>But this works flawlessly as a /root/ crontab. I do /not/ have a
    >>cron.allow or .deny file and I am more than a little puzzled as to why
    >>this does not work. I can set a crontab for myself as a user quite
    >>easily.


    [...]

    > Permissions? You're mixing 'news' with 'andrew', do the commands work
    > when manually invoked?


    Thanks Grant, you have hit the nail on the head and I curse myself for
    not having seen this sooner. 'news' could not access the log which was
    owned by 'andrew'with permissions 600. Once I changed the permissions
    all was well.

    Thanks,

    Andrew
    --
    http://www.andrews-corner.org

  4. Re: User 'news' will not do cron job

    On Wed, 23 Jan 2008 18:09:01 +1100, andrew
    wrote:

    >Hi,
    >
    >I am using Leafnode 2 on Slackware 12 and have a user 'news'. All is
    >working well but for some reason news will not do the following cron
    >jobs:
    >
    >10 21 * * * /usr/sbin/texpire -vvv >/home/andrew/.texpirelog 2>&1
    >15 * * * * /usr/sbin/fetchnews -vvv >/home/andrew/.fetchnewslog 2>&1
    >
    >But this works flawlessly as a /root/ crontab. I do /not/ have a
    >cron.allow or .deny file and I am more than a little puzzled as to why
    >this does not work. I can set a crontab for myself as a user quite
    >easily.
    >
    >Any thoughts?
    >
    > Andrew
    >
    >PS I have posted a similar question on Linuxquestions.org and I hope
    >this does not count as multi-posting.


    Does your 'news' user have execute permissions for /usr/sbin/texpire
    and /usr/sbin/fetchnews?

    Does your 'news' user have write permissions within /home/andrew? And,
    if they already exist, write permissions on /home/andrew/.texpirelog
    and /home/andrew/.fetchnewslog?

    Does /var/log/cron give any clues?


    Scott McMillan

  5. Re: User 'news' will not do cron job

    On 2008-01-23, Scott McMillan wrote:
    > On Wed, 23 Jan 2008 18:09:01 +1100, andrew
    > wrote:


    >>I am using Leafnode 2 on Slackware 12 and have a user 'news'. All is
    >>working well but for some reason news will not do the following cron
    >>jobs:
    >>
    >>10 21 * * * /usr/sbin/texpire -vvv >/home/andrew/.texpirelog 2>&1
    >>15 * * * * /usr/sbin/fetchnews -vvv >/home/andrew/.fetchnewslog 2>&1


    [...]

    > Does your 'news' user have write permissions within /home/andrew? And,
    > if they already exist, write permissions on /home/andrew/.texpirelog
    > and /home/andrew/.fetchnewslog?


    Exactly! This turned out to be the problem: 'news' did not have
    permission to write the log. This has now been rectified and all is
    running smoothly.

    Thanks for your trouble,

    Andrew

    --
    http://www.andrews-corner.org

+ Reply to Thread