[Slackbuilds-users] on creating users

Miguel De Anda miguel at thedeanda.com
Wed Jun 19 16:08:22 UTC 2013


thanks robby -- that's exactly was i was worried about (different gid/uid
on different machine)


On Wed, Jun 19, 2013 at 3:24 AM, Kees Theunissen
<C.J.Theunissen at differ.nl>wrote:

> On Wed, 19 Jun 2013, Robby Workman wrote:
>
> >On Tue, 18 Jun 2013 10:58:03 -0700
> >Miguel De Anda <miguel at thedeanda.com> wrote:
> >
> >> thanks. i guess the safest answer is to not automatically create the
> >> user. i'm thinking of adding a note in the slack-desc and possibly in
> >> the rc script as well. something along the lines of
> >>
> >> echo "$PRGNAME failed to start because it requires a group/user
> >> $GRPNAME/$USRNAME"
> >> exit 1
> >
> >
> >I think it's needless cruft in the slack-desc.
> >
> >It *might* be possible to convince me that the init script would
> >be a decent place to do that.  r
> >
> >-RW
> >
>
> An application or daemon should IMHO not chance the system configuration
> when started. If a program can not run as intended/configured if should
> simply fail to start and log/report that failure.
>
> If (a badly written) daemon would run as root when the intended user/group
> is missing then the init script should test if the user/group exists.
>
> You (RW) wrote yesterday:
>    ... so I'd rather have something fail
>    horribly due to a missing user/group than have a stealthily
>    created (and wrong/inconsistent) user and uid present.
>
> I'd rather have things fail nicely in such a case.  :-)
>
> Groeten,
>
> Kees.
>
> --
> Kees Theunissen, Systeem- en netwerkbeheerder,   Tel: 030-6096724
> Dutch Institute For Fundamental Energy Research (DIFFER)
> e-mailadres:     C.J.Theunissen at differ.nl
> postadres:       Postbus 1207, 3430 BE Nieuwegein
> bezoekersadres:  Edisonbaan 14, 3439 MN Nieuwegein
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20130619/f98e1a68/attachment.html>


More information about the SlackBuilds-users mailing list