It'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"><x11r6@go2.pl></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 <<a href="mailto:rw@rlworkman.net">rw@rlworkman.net</a>>:<br>
<div><div></div><div class="h5">> On Sun, 28 Jun 2009 15:08:44 +0200<br>
><br>
> x11r6@go2.pl wrote:<br>
> > New sbopkg-0.30.0alpha1 after "sbopkg -r" as user:<br>
> ><br>
> > sbopkg: sbopkg must be run by the root user. Exiting.<br>
> ><br>
> > Is it really necessary?<br>
><br>
> Why would you *not* want to run it as root?<br>
> What do you hope to accomplish by that?<br>
><br>
> Everything that sbopkg does, for the most part, requires root<br>
> privileges. Therefore, you can either run it as root, or the<br>
> developers can add a lot of potentially complex and otherwise<br>
> unnecessary code to it enabling it to run with normal user<br>
> privileges. The sky is not falling.<br>
><br>
> -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>
"chown root:root $PKG" need root privileges to avoid random (user)<br>
permissions in the package and this is good moment to use "sudo".<br>
But why rsync?<br>
I was surprised of the new feature in the new version. That'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>