sudo from crontab

From: Seth Rothenberg (SROTHENB_at_montefiore.org)
Date: 09/29/04

  • Next message: Jack Matthews: "E450 and D1000 setup questions"
    Date: Wed, 29 Sep 2004 11:45:49 -0400
    To: <sunmanagers@sunmanagers.org>
    
    

    Greetings Sun managers,
    I am trying to run a perl script as root from a user's crontab.
    The user can run the command using sudo from a command prompt, without
    password.
    The log of the cron job shows that sudo is asking the user to type a
    password
    (presumably the user's own password).

    I was wondering if anyone has done this?
    We are presently at sudo v. 1.6.7p5

    Thanks
    Seth
    PS The script I am running manipulates print jobs in /var/spool/print.
     For the time being,
    I added this user to the lp group and made that directory group
    writable - no sudo needed.
    Does anyone have a better/safer/cleaner suggestion? Thx
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Jack Matthews: "E450 and D1000 setup questions"

    Relevant Pages

    • Re: Chown as regular user?
      ... On 2005-05-26, SimonV wrote: ... you can use sudo in a perl script or in a normal script. ... It just develops random features. ...
      (comp.os.linux.security)
    • SUMMARY: sudo from crontab
      ... I asked about having a user run a script using sudo from his crontab. ... The user CAN run the command via sudo from the command prompt, ...
      (SunManagers)