Thread: Upstart and Sudo - Emails from Root
i getting weird issue.
running 10.04 of ubuntu. have postfix mail server installed , set send alerts.
when have following script in in /etc/init/airvideo.conf file described here http://wiki.birth-online.de/know-how...o-server-linux.
when boot air video server starts , have no issues it. im having issue if have airvideo.conf file in etc/init/ folder needs to boot receive email postfix server subject.code:start on runlevel [2345] stop on shutdown respawn exec sudo -h -n -u johnnytk36 /usr/bin/java -jar /home/johnnytk36/avs/airvideoserverlinux.jar /home/johnnytk36/avs/avs.properties
& body ofcode:*** security information server ***the *** in body random strange combo of few characters.code:server : aug 30 18:30:30 : root : ***
think has permissions, don't know issue is. think email trying tell me tried guess root pass.
know said karmic linux , i'm using lucid. might issue, don't know.
update: after spending 6 hours debugging could, cant figure out. have narrowed down fact using sudo command while in root. think triggers email sent. seems bypassing setting can think of stop this. have tried edit sudoers file not allow email sent, no matter did. didn't work.
added sudoers file:
here auth log output:code:defaults mail_always=off defaults mail_badpass=off defaults mail_no_user=off defaults mail_no_host=off defaults mail_no_perms=off
could if fact sudeurs file readable root?code:aug 31 02:05:21 server sudo: root : tty=unknown ; pwd=/ ; user=johnnytk36 ; command=/bin/bash -c /usr/bin/java -djava.awt.headless=true -jar /opt/avs/airvideoserverlinux.jar /opt/avs/avs.properties
appreciated.
i've given , i'm going filter in gmail delete email comes in. might true bug, dont care anymore. if else using 10.04 sees this, let me know, know i'm not alone.
http://www.sudo.ws/sudo/sudoers.man.html
update 2: fixed
hostname in host files , real hostname didn't match. had changed few weeks ago. still dont know why sudeors file ignored settings not send emails though.
https://bugs.launchpad.net/ubuntu/+s...do/+bug/530073
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Upstart and Sudo - Emails from Root
Ubuntu
Comments
Post a Comment