Re: strange problem with sudo and cgi

From: Kai Hessing (kai.hessing_at_forum.de)
Date: 09/15/04

  • Next message: jpd: "Re: NetBSD 1.6 Intel Flavor Optimized For?"
    Date: Wed, 15 Sep 2004 09:28:55 +0200
    
    

    Another strange Problem in the same context. The script (using user www)
    tries to execute 'sudo passwd xxx'. It asks for the www-password even if
    in /etc/sudoers this is allowed without giving password. OK, that not a
    real problem, except i have to write the www-password into my script :(
    But to verify this, I switched to user www (su www) and 'sudo passwd
    xxx' -> No www-password is asked. And the real strange thing is, after I
    did that I couldn't redirect the the STDERR to STDOUT. Every execution
    of 'sudo passwd xxx 2>&1' leads to an '1:permission denied'. I did a
    server reboot and everthing works (nearly) fine. What is this? Ghost in
    the shell?

    -- 
    GnuPG-PublicKey -> http://www.forum.de/pgp/kai_hessing.asc
    

  • Next message: jpd: "Re: NetBSD 1.6 Intel Flavor Optimized For?"