<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Jamie Le Souef&#187; All posts filed under Root</title> <atom:link href="http://jamielesouef.com/tag/root/feed/" rel="self" type="application/rss+xml" /><link>http://jamielesouef.com</link> <description>website . blog . graphic design</description> <lastBuildDate>Sat, 31 Jul 2010 17:48:00 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Linux Tip : Sorry, sudo must be setuid root</title><link>http://jamielesouef.com/linux/linux-tip-sorry-sudo-must-be-setuid-root/</link> <comments>http://jamielesouef.com/linux/linux-tip-sorry-sudo-must-be-setuid-root/#comments</comments> <pubDate>Fri, 19 Sep 2008 01:11:37 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Root]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[sudo]]></category> <category><![CDATA[Tips]]></category><guid isPermaLink="false">http://jamielesouef.com/?p=411</guid> <description><![CDATA[ This was driving me batty. I had an issue with one of my linux webservers and it needed to be restored from a backup. Upon restoring the linux server I found my account that I had setup for sudo access no longer would accept the &#8217;sudo su&#8217; command or any sudo command for that matter. [...]]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="margin-right: 10px; margin-top:10px; margin-bottom:10px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Flinux-tip-sorry-sudo-must-be-setuid-root%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Flinux-tip-sorry-sudo-must-be-setuid-root%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p>This was driving me batty. I had an issue with one of my linux webservers and it needed to be restored from a backup. Upon restoring the linux server I found my account that I had setup for sudo access no longer would accept the &#8217;sudo su&#8217; command or any sudo command for that matter. I was getting and error that read &#8220;<strong>Sorry, sudo must be setuid root</strong>&#8220;.</p><p>As I had <a title="Linux Security : Can you SSH as root?" href="http://jamielesouef.com/linux/linux-security-can-you-ssh-as-root/">removed the root account from accessing ssh</a> I had to log into the physical server (lucky it&#8217;s just next to me!)</p><p>It turns out for some reason after the restore sudo had the wrong permissions.</p><p>To fix it was quite simple but took me ages to track down! (Helps if you know exactly what to search for)</p><p>I logged in as root and entered the following</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">4111</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sudo</span></pre></div></div><p>All was fine in the land of oz after that!</p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/linux/linux-tip-sorry-sudo-must-be-setuid-root/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching using disk

Served from: jamielesouef.com @ 2010-08-01 05:19:48 -->