<?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"
	>
<channel>
	<title>Comments on: Sudo FAQ</title>
	<atom:link href="http://polishlinux.org/first-steps/root-account/sudo-faq/feed/" rel="self" type="application/rss+xml" />
	<link>http://polishlinux.org</link>
	<description>All About GNU/Linux and BSD - reviews, comparisons, articles</description>
	<pubDate>Sat, 22 Nov 2008 10:17:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Buchan</title>
		<link>http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-115746</link>
		<dc:creator>Buchan</dc:creator>
		<pubDate>Sun, 24 Feb 2008 20:23:54 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-115746</guid>
		<description>There is no real solution (with open-source software) to allow almost-all commands as root.

However, one solution to your real problem, is to allow specific commands, and anything not specifically allowed would be made accessible via an audited shell, such as sudosh2 (http://sf.net/projects/sudosh2), or eash (the more enterprise version of sudosh, but the project is gone, however the source is available in Mandriva's svn repo - the package being maintained by me ...).

A TACACS+ based shell would be a better option ... but it would have to be hacked in to quite an extent to be similar to how the command shell on Cisco IOS (for example) handles TACACS+ command authorization ...</description>
		<content:encoded><![CDATA[<p>There is no real solution (with open-source software) to allow almost-all commands as root.</p>
<p>However, one solution to your real problem, is to allow specific commands, and anything not specifically allowed would be made accessible via an audited shell, such as sudosh2 (http://sf.net/projects/sudosh2), or eash (the more enterprise version of sudosh, but the project is gone, however the source is available in Mandriva&#8217;s svn repo - the package being maintained by me &#8230;).</p>
<p>A TACACS+ based shell would be a better option &#8230; but it would have to be hacked in to quite an extent to be similar to how the command shell on Cisco IOS (for example) handles TACACS+ command authorization &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-113810</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 14 Feb 2008 15:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-113810</guid>
		<description>We have a problem with admins always typing "sudo bash" or "sudo tcsh" then doing their stuff as root without any logging.

Does anyone know if it's possible to block users' access to *certain* commands, while allowing all other commands?  We need this mostly as a reminder of policy, rather than for security.

The best I've come up with so far is a daily grep of /var/log/messages.0.gz for offending lines, with an automated email reminder to whoever does it.

Thanks.</description>
		<content:encoded><![CDATA[<p>We have a problem with admins always typing &#8220;sudo bash&#8221; or &#8220;sudo tcsh&#8221; then doing their stuff as root without any logging.</p>
<p>Does anyone know if it&#8217;s possible to block users&#8217; access to *certain* commands, while allowing all other commands?  We need this mostly as a reminder of policy, rather than for security.</p>
<p>The best I&#8217;ve come up with so far is a daily grep of /var/log/messages.0.gz for offending lines, with an automated email reminder to whoever does it.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergiy Tsymbal</title>
		<link>http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-100411</link>
		<dc:creator>Sergiy Tsymbal</dc:creator>
		<pubDate>Sun, 06 Jan 2008 13:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-100411</guid>
		<description>I was also looking for the way to change umask of the user I am sudoing to. 
Apparently, it is controlled by sudo defaults. To change umask of the user you sudo to (sudo -u useranme) add the following line to /etc/sudoers

Defaults&#62;username umask=0002

Regards,
Sergiy</description>
		<content:encoded><![CDATA[<p>I was also looking for the way to change umask of the user I am sudoing to.<br />
Apparently, it is controlled by sudo defaults. To change umask of the user you sudo to (sudo -u useranme) add the following line to /etc/sudoers</p>
<p>Defaults&gt;username umask=0002</p>
<p>Regards,<br />
Sergiy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heidi Schmidt</title>
		<link>http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-23889</link>
		<dc:creator>Heidi Schmidt</dc:creator>
		<pubDate>Thu, 12 Apr 2007 19:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-23889</guid>
		<description>Thanks for the forum. I have been searching for a way to figure out if the .cshrc is ever read on sudo -u username. In my test trial I put umask 022 into the .cshrc file and when I sudo-ed to username and ran umask it was set to 2 

I am not sure if it is the /etc/sudoers file, a sudo command line flag or other setting that needs to happen in order for the .cshrc file to be properly sourced upon sudo -u 

From what I read it looked like resetting environment paths was inherent. I am sudo -u username shell and in that case I want the dot files sourced. 

Any help appreciated. 

Thanks
Heidi</description>
		<content:encoded><![CDATA[<p>Thanks for the forum. I have been searching for a way to figure out if the .cshrc is ever read on sudo -u username. In my test trial I put umask 022 into the .cshrc file and when I sudo-ed to username and ran umask it was set to 2 </p>
<p>I am not sure if it is the /etc/sudoers file, a sudo command line flag or other setting that needs to happen in order for the .cshrc file to be properly sourced upon sudo -u </p>
<p>From what I read it looked like resetting environment paths was inherent. I am sudo -u username shell and in that case I want the dot files sourced. </p>
<p>Any help appreciated. </p>
<p>Thanks<br />
Heidi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Budler</title>
		<link>http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-18040</link>
		<dc:creator>Jim Budler</dc:creator>
		<pubDate>Fri, 02 Mar 2007 08:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-18040</guid>
		<description>Fedora Core 6:

Sudo visudo was using vi despite my EDITOR and VISUAL being set to nedit.

Simple fix:

sudo visudo; Modify env_keep to include VISUAL and EDITOR.

Result: sudo visudo uses nedit.

Jim</description>
		<content:encoded><![CDATA[<p>Fedora Core 6:</p>
<p>Sudo visudo was using vi despite my EDITOR and VISUAL being set to nedit.</p>
<p>Simple fix:</p>
<p>sudo visudo; Modify env_keep to include VISUAL and EDITOR.</p>
<p>Result: sudo visudo uses nedit.</p>
<p>Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkatt Guhesan</title>
		<link>http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-17850</link>
		<dc:creator>Venkatt Guhesan</dc:creator>
		<pubDate>Wed, 28 Feb 2007 19:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-17850</guid>
		<description>Also another rarely used command is when you open up GUI applications. Have you ever encountered situations where in Ubuntu you have a graphical windows open and you were trying to copy to/from a directory where it has secure "root" access, and it comes back and tells you that you can't. Well to get around this issue you can use the "gksudo " 

For example, "gksudo nautilus" will open your file explorer as root...

This will allow you to modify as root. But also be aware that you can also do some serious damage as root...

Enjoy...</description>
		<content:encoded><![CDATA[<p>Also another rarely used command is when you open up GUI applications. Have you ever encountered situations where in Ubuntu you have a graphical windows open and you were trying to copy to/from a directory where it has secure &#8220;root&#8221; access, and it comes back and tells you that you can&#8217;t. Well to get around this issue you can use the &#8220;gksudo &#8221; </p>
<p>For example, &#8220;gksudo nautilus&#8221; will open your file explorer as root&#8230;</p>
<p>This will allow you to modify as root. But also be aware that you can also do some serious damage as root&#8230;</p>
<p>Enjoy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ranger</title>
		<link>http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-17709</link>
		<dc:creator>ranger</dc:creator>
		<pubDate>Tue, 27 Feb 2007 14:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-17709</guid>
		<description>Jochen, for editors, it is effective to add rules for sudoedit, which will be used by sudoedit to allow users to edit files. In this case, sudoedit copies the original file to a temporary location, runs the user's editor (determined from VISUAL or similar) as the user. On exit of the editor, sudoedit will then copy the temporary file over the original file if the temporary copy has changed.

So, while there are still some issues with it, it provides access to an editor without providing an avenue for exploit.

Also, for circumstances where users must run some kind of interactive application (e.g. installing some proprietary software, etc. etc.) there are audited shells available (which you can provide access to via sudo).

Finally, I don't think any article on sudo is complete without noting that current versions of sudo support reading sudo rules from LDAP (which avoids problems with syntax checking, and provides immediate access to new rules across all hosts).</description>
		<content:encoded><![CDATA[<p>Jochen, for editors, it is effective to add rules for sudoedit, which will be used by sudoedit to allow users to edit files. In this case, sudoedit copies the original file to a temporary location, runs the user&#8217;s editor (determined from VISUAL or similar) as the user. On exit of the editor, sudoedit will then copy the temporary file over the original file if the temporary copy has changed.</p>
<p>So, while there are still some issues with it, it provides access to an editor without providing an avenue for exploit.</p>
<p>Also, for circumstances where users must run some kind of interactive application (e.g. installing some proprietary software, etc. etc.) there are audited shells available (which you can provide access to via sudo).</p>
<p>Finally, I don&#8217;t think any article on sudo is complete without noting that current versions of sudo support reading sudo rules from LDAP (which avoids problems with syntax checking, and provides immediate access to new rules across all hosts).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-17689</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Tue, 27 Feb 2007 10:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/first-steps/root-account/sudo-faq/#comment-17689</guid>
		<description>I used visudo in ubuntu and it came up with pico. It took me a second to realize what it was. I was expecting vi and I typed :q after I was done looking and I was like "WTF mate?" when it put the text in the middle of the screen even after I esc'd.</description>
		<content:encoded><![CDATA[<p>I used visudo in ubuntu and it came up with pico. It took me a second to realize what it was. I was expecting vi and I typed :q after I was done looking and I was like &#8220;WTF mate?&#8221; when it put the text in the middle of the screen even after I esc&#8217;d.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
