<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: UNIX / Linux: Send E-mail When sudo Runs</title> <atom:link href="http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Billy Crook</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-63330</link> <dc:creator>Billy Crook</dc:creator> <pubDate>Sun, 09 Oct 2011 18:21:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-63330</guid> <description>@Sandeep
That&#039;s because you&#039;re not supposed to edit /etc/sudoers.  You&#039;re a human.  That file is not for humans.  Do not attempt to edit that file.  Instead, run the command visudo.</description> <content:encoded><![CDATA[<p>@Sandeep</p><p>That&#8217;s because you&#8217;re not supposed to edit /etc/sudoers.  You&#8217;re a human.  That file is not for humans.  Do not attempt to edit that file.  Instead, run the command visudo.</p> ]]></content:encoded> </item> <item><title>By: Sandeep</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-54229</link> <dc:creator>Sandeep</dc:creator> <pubDate>Fri, 31 Dec 2010 04:41:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-54229</guid> <description>Be careful while editing sudoers file u wont be able to get access as root again in that case enter single user mode (recovery mode ) and delete line we had added in sudoers file and reboot...i too got error while editing sudoers file</description> <content:encoded><![CDATA[<p>Be careful while editing sudoers file u wont be able to get access as root again in that case enter single user mode (recovery mode ) and delete line we had added in sudoers file and reboot&#8230;i too got error while editing sudoers file</p> ]]></content:encoded> </item> <item><title>By: ambrozy</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-47142</link> <dc:creator>ambrozy</dc:creator> <pubDate>Sat, 01 May 2010 18:41:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-47142</guid> <description>Vivek: I have the same problem as Rolf. My sudo version is 1.6.9p17
And this is what happens:
I am editing /etc/sudoers with visudo. The result of adding 3 lines which you can find below:
Defaults        env_reset
mailto &quot;admin@staff.example.com&quot;
mail_always on
is that I&#039;m getting error message:
ambrozy@zeus:~$ sudo visudo
&gt;&gt;&gt; sudoers file: syntax error, line 8 &lt;&lt;&gt;&gt; sudoers file: syntax error, line 10 &lt;&lt;&lt;
with &quot;Defaults&quot; at the beggining it&#039;s working fine:
Defaults        !lecture,tty_tickets,!fqdn,!syslog
Defaults        logfile=/var/log/sudo.log
Defaults        mailto=&quot;noc@wired.pl&quot;,mail_always
Defaults        mail_badpass, mailsub=&quot;** BAD AUTHENICATION: %U %h **&quot;
Defaults        mail_no_user, mailsub=&quot;** USER NOT IN SUDOERS: %U %h **&quot;
Defaults        mail_no_perms, mailsub=&quot;** SUDO PERMISSION ABUSE: %U %h **&quot;</description> <content:encoded><![CDATA[<p>Vivek: I have the same problem as Rolf. My sudo version is 1.6.9p17</p><p>And this is what happens:<br
/> I am editing /etc/sudoers with visudo. The result of adding 3 lines which you can find below:</p><p>Defaults        env_reset<br
/> mailto &#8220;admin@staff.example.com&#8221;<br
/> mail_always on</p><p>is that I&#8217;m getting error message:</p><p>ambrozy@zeus:~$ sudo visudo<br
/> &gt;&gt;&gt; sudoers file: syntax error, line 8 &lt;&lt;&gt;&gt; sudoers file: syntax error, line 10 &lt;&lt;&lt;</p><p>with &quot;Defaults&quot; at the beggining it&#039;s working fine:</p><p>Defaults        !lecture,tty_tickets,!fqdn,!syslog<br
/> Defaults        logfile=/var/log/sudo.log<br
/> Defaults        mailto=&quot;noc@wired.pl&quot;,mail_always<br
/> Defaults        mail_badpass, mailsub=&quot;** BAD AUTHENICATION: %U %h **&quot;<br
/> Defaults        mail_no_user, mailsub=&quot;** USER NOT IN SUDOERS: %U %h **&quot;<br
/> Defaults        mail_no_perms, mailsub=&quot;** SUDO PERMISSION ABUSE: %U %h **&quot;</p> ]]></content:encoded> </item> <item><title>By: Gokul</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-45266</link> <dc:creator>Gokul</dc:creator> <pubDate>Tue, 22 Dec 2009 13:08:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-45266</guid> <description>I want to configure SUDO  password when I use sudo command in terminal than It should be ask for password every time.
When I use putty and cert key than it is not asked for password.</description> <content:encoded><![CDATA[<p>I want to configure SUDO  password when I use sudo command in terminal than It should be ask for password every time.<br
/> When I use putty and cert key than it is not asked for password.</p> ]]></content:encoded> </item> <item><title>By: M.S. Babaei</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-42839</link> <dc:creator>M.S. Babaei</dc:creator> <pubDate>Sat, 01 Aug 2009 03:34:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-42839</guid> <description>Great!! Good job!!</description> <content:encoded><![CDATA[<p>Great!! Good job!!</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-42407</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Tue, 07 Jul 2009 09:51:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-42407</guid> <description>@Rolf,
Can you tell us about your sudo version?</description> <content:encoded><![CDATA[<p>@Rolf,</p><p>Can you tell us about your sudo version?</p> ]]></content:encoded> </item> <item><title>By: Rolf</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-42371</link> <dc:creator>Rolf</dc:creator> <pubDate>Fri, 03 Jul 2009 19:52:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-42371</guid> <description>I had to write it like this:
&lt;code&gt;Defaults mailto=&quot;sudoers@domain.com&quot;,mail_always&lt;/code&gt;</description> <content:encoded><![CDATA[<p>I had to write it like this:<br
/> <code>Defaults mailto="sudoers@domain.com",mail_always</code></p> ]]></content:encoded> </item> <item><title>By: Jennifer DiNardo</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-42336</link> <dc:creator>Jennifer DiNardo</dc:creator> <pubDate>Wed, 01 Jul 2009 11:57:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-42336</guid> <description>Thanks! This is one more step in creating a secure server environment and it keeps me from having to check the log files often.</description> <content:encoded><![CDATA[<p>Thanks! This is one more step in creating a secure server environment and it keeps me from having to check the log files often.</p> ]]></content:encoded> </item> <item><title>By: Lava Kafle</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-42335</link> <dc:creator>Lava Kafle</dc:creator> <pubDate>Wed, 01 Jul 2009 11:30:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-42335</guid> <description>thanks great tip for us</description> <content:encoded><![CDATA[<p>thanks great tip for us</p> ]]></content:encoded> </item> <item><title>By: Liju</title><link>http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/#comment-42333</link> <dc:creator>Liju</dc:creator> <pubDate>Wed, 01 Jul 2009 10:43:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4281#comment-42333</guid> <description>Thanks,
Good  tips for staging-prod servers.. to catch all the activities....</description> <content:encoded><![CDATA[<p>Thanks,</p><p>Good  tips for staging-prod servers.. to catch all the activities&#8230;.</p> ]]></content:encoded> </item> </channel> </rss>
