Find the answer to your Linux question:
Results 1 to 2 of 2
I have installed cron written by Vixie Cron. After installing, the crontab worked well as user root. But, when I switch to another user named `work', there are some problems. ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    5

    crontab need chmod?

    I have installed cron written by Vixie Cron. After installing,
    the crontab worked well as user root. But, when I switch to
    another user named `work', there are some problems.

    I have added the set-uid to the program /usr/bin/crontab and
    made the directory /var/cron/tabs can be written and executed
    by all users.

    Then, when I executed the following command:
    crontab workcron
    in my $HOME( workcron is a crontab file in $HOME), I got the
    a message like this:
    chown: Operation not permitted
    I don't have any idea of what relation is between chown and
    crontab.

    LFS 6.3 linux is my working system. The source code is available
    in attachment.
    Attached Files Attached Files

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    What is the output of

    Code:
    ls -al workcron
    What user is trying to execute the cron job?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...