It&#39;d be a mess to try and sudo everything, and that is assuming the user actually is configured correctly for sudo.  That really is not KISS.<br><br>Instead, what I would recommend is to have a completely separate script for regular user use.  You could use many of the functions from sbopkg to make it, and could even place it at /usr/bin/sbopkg so that it is transparent to the user that it is a different script..  Of course, for even some mundane features such as rsync to work, the user would have to have write permissions to the destination folder.<br>
<br>The code gets really nasty when you try to mix root and non-root.<br><br>--phillip<br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 6:43 AM,  <span dir="ltr">&lt;x11r6@go2.pl&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
¶roda, 1 lipca 2009 07:15, Robby Workman &lt;<a href="mailto:rw@rlworkman.net">rw@rlworkman.net</a>&gt;:<br>
<div><div></div><div class="h5">&gt; On Sun, 28 Jun 2009 15:08:44 +0200<br>
&gt;<br>
&gt; x11r6@go2.pl wrote:<br>
&gt; &gt; New sbopkg-0.30.0alpha1 after &quot;sbopkg -r&quot; as user:<br>
&gt; &gt;<br>
&gt; &gt; sbopkg: sbopkg must be run by the root user.  Exiting.<br>
&gt; &gt;<br>
&gt; &gt; Is it really necessary?<br>
&gt;<br>
&gt; Why would you *not* want to run it as root?<br>
&gt; What do you hope to accomplish by that?<br>
&gt;<br>
&gt; Everything that sbopkg does, for the most part, requires root<br>
&gt; privileges.  Therefore, you can either run it as root, or the<br>
&gt; developers can add a lot of potentially complex and otherwise<br>
&gt; unnecessary code to it enabling it to run with normal user<br>
&gt; privileges.  The sky is not falling.<br>
&gt;<br>
&gt; -RW<br>
<br>
</div></div>Right, question of your assumptions, style of engineering... Usualy I<br>
build my packages as unprivileged user because it is possible and safe.<br>
IMHO rising of permissions for is not necessary. Only some commands like<br>
&quot;chown root:root $PKG&quot; need root privileges to avoid random (user)<br>
permissions in the package and this is good moment to use &quot;sudo&quot;.<br>
But why rsync?<br>
I was surprised of the new feature in the new version. That&#39;s it.<br>
<br>
-Cheers, -X.<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
sbopkg-users mailing list<br>
<a href="mailto:sbopkg-users@sbopkg.org">sbopkg-users@sbopkg.org</a><br>
<a href="http://sbopkg.org/mailman/listinfo/sbopkg-users" target="_blank">http://sbopkg.org/mailman/listinfo/sbopkg-users</a><br>
</div></div></blockquote></div><br>