<div dir="ltr">thanks robby -- that's exactly was i was worried about (different gid/uid on different machine)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 3:24 AM, Kees Theunissen <span dir="ltr"><<a href="mailto:C.J.Theunissen@differ.nl" target="_blank">C.J.Theunissen@differ.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, 19 Jun 2013, Robby Workman wrote:<br>
<br>
>On Tue, 18 Jun 2013 10:58:03 -0700<br>
>Miguel De Anda <<a href="mailto:miguel@thedeanda.com">miguel@thedeanda.com</a>> wrote:<br>
><br>
>> thanks. i guess the safest answer is to not automatically create the<br>
>> user. i'm thinking of adding a note in the slack-desc and possibly in<br>
>> the rc script as well. something along the lines of<br>
>><br>
>> echo "$PRGNAME failed to start because it requires a group/user<br>
>> $GRPNAME/$USRNAME"<br>
>> exit 1<br>
><br>
><br>
>I think it's needless cruft in the slack-desc.<br>
><br>
>It *might* be possible to convince me that the init script would<br>
>be a decent place to do that.  r<br>
><br>
>-RW<br>
><br>
<br>
</div></div>An application or daemon should IMHO not chance the system configuration<br>
when started. If a program can not run as intended/configured if should<br>
simply fail to start and log/report that failure.<br>
<br>
If (a badly written) daemon would run as root when the intended user/group<br>
is missing then the init script should test if the user/group exists.<br>
<br>
You (RW) wrote yesterday:<br>
   ... so I'd rather have something fail<br>
<div class="im">   horribly due to a missing user/group than have a stealthily<br>
   created (and wrong/inconsistent) user and uid present.<br>
<br>
</div>I'd rather have things fail nicely in such a case.  :-)<br>
<br>
Groeten,<br>
<br>
Kees.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Kees Theunissen, Systeem- en netwerkbeheerder,   Tel: 030-6096724<br>
Dutch Institute For Fundamental Energy Research (DIFFER)<br>
e-mailadres:     <a href="mailto:C.J.Theunissen@differ.nl">C.J.Theunissen@differ.nl</a><br>
postadres:       Postbus 1207, 3430 BE Nieuwegein<br>
bezoekersadres:  Edisonbaan 14, 3439 MN Nieuwegein<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a><br>
<a href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" target="_blank">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/" target="_blank">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="http://slackbuilds.org/faq/" target="_blank">http://slackbuilds.org/faq/</a><br>
<br>
</div></div></blockquote></div><br></div>