Upstart and Sudo - Email for root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I posted this on the ubuntu forums. I cant tell if its a upstart issue or a way something is implemented. If it is a upstart issue, i want to help yall fix it.
I am getting a weird issue.
I am running 10.04 of Ubuntu. I have Postfix mail server installed and set to send alerts.
When I have the following script in the in a /etc/init/
[code]start on runlevel [2345]
stop on shutdown
respawn
exec sudo -H -n -u johnnytk36 /usr/bin/java -jar /home/johnnytk3
[code]*** SECURITY information for Server ***[/code]& a body of [code]Server : Aug 30 18:30:30 : root : ***
[/code]The *** in the body is usually some random strange combo of a few characters.
I think it has to do with permissions, i just don't know where the issue is. I think the email is trying to tell me that something tried to guess my root pass.
I know this said it was for Karmic Linux and it I'm using Lucid. That might be the issue, i don't know.
UPDATE: After spending 6 hours debugging this all i could, i cant figure it out. I have narrowed it down to the fact that we are using the sudo command while already in root. I think that triggers the email to be sent. It seems to be bypassing any setting i can think of to stop this. I have tried to edit the sudoers file to not allow email sent, but no matter what i did. It didn't work.
This is what i added to the sudoers file:
[CODE]Defaults mail_always=off
Defaults mail_badpass=off
Defaults mail_no_user=off
Defaults mail_no_host=off
Defaults mail_no_
[CODE]Aug 31 02:05:21 Server sudo: root : TTY=unknown ; PWD=/ ; USER=johnnytk36 ; COMMAND=/bin/bash -c /usr/bin/java -Djava.
Any help is appreciated.
I've given up for now and I'm just going to do a filter in Gmail to delete the email as soon as it comes in. This might be a true bug, but i dont care anymore. If anyone else using 10.04 sees this, let me know, so i know i'm not alone.
no longer affects: | null |
Transferring this to Ubuntu sudo