<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 2, 2014 at 10:25 PM, Lawrence Velázquez <span dir="ltr"><<a href="mailto:larryv@macports.org" target="_blank">larryv@macports.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Nov 2, 2014, at 9:29 PM, Marcus Calhoun-Lopez <<a href="mailto:mcalhoun@macports.org">mcalhoun@macports.org</a>> wrote:<br>
> Recently, a user reported having his root account deleted after installing the port dbus (Ticket #45737).<br>
> I do not see how it is possible, but I though that we can not risk such a catastrophic result for anyone else.<br>
> Can anyone image how such a situation could come about?<br>
<br>
</span> unset -nocomplain startup_root<br>
if { [variant_isset no_root] } {<br>
set dbus_user ${install.user}<br>
set dbus_group ${install.group}<br>
[...]<br>
}<br>
add_users ${dbus_user} group=${dbus_group} realname=Message\ Bus<br>
<br>
What happens here if install.user is root?<br></blockquote><div><br></div><div>Nothing --- if the user exists it's used as is. And I don't think users are ever removed, since there's little point and lots of ugly corner cases (like, indeed, what if someone specified root).</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>