<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="http://neil.brown.name/blog/suidrun"/>

<title>suidrun</title>
<modified>2005-07-14T16:16:53Z</modified>
<author></author>
<entry>
<title>suidrun - for providing setuid to customers when you want to mount with nosuid</title>
<issued>2005-07-14T16:16:53Z</issued>
<modified>2005-07-14T16:16:53Z</modified>
<id>http://neil.brown.name/blog/20050714161653</id>
<link rel="alternate" type="text/html" href="http://neil.brown.name/blog/20050714161653"/>
<content type="text/html" mode="escaped">


&lt;p&gt;We have several thousand customers, mostly students.  Many of them have no idea what a setuid bit is, and don't really need to know.  This has lead to several hundred setuid or setgid files that really should be set-id.  This may not actually be a real security threat (a setuid image file cannot do much) but there is the potential for a security problem.

&lt;p&gt;Also, allowing setuid files means that someone with temporary elevated privileges can 
(a workstation left logged-on) can easily elevant them to permanent privileges.  This can be alleviated by reguilar scanning, but for this you need a lisdt of allowed setuid programs, and if you have decided to have such a list, there are better ways than scanning.

&lt;p&gt;So I have written a little program that can give setuid functionality to customers whose homedirectory is on a filesystem that is mounted with &lt;b&gt;nosetuid&lt;/b&gt;.  The program requires all setuid programs to be recorded in a control file - &lt;tt&gt;/etc/suidrun.rc&lt;/tt&gt;.  Providing such files pass some simple tests, they can be run as though the setuid bit were really working.

&lt;p&gt;The program in available under the GPL from &lt;a href=&quot;http://www.cse.unsw.edu.au/~neilb/source/suidrun/&quot;&gt;http://www.cse.unsw.edu.au/~neilb/source/suidrun/&lt;/a&gt;.

&lt;p&gt;See the man-page for more details.


&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;a href=http://neil.brown.name/blog/20050714161653&gt;(No comments)&lt;/a&gt;</content>
</entry>

</feed>

