Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] create_account & create_group placement

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: David Brown <dmlb2000 AT gmail.com>
  • To: disk AT sourcemage.org
  • Cc: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] create_account & create_group placement
  • Date: Tue, 9 Aug 2005 07:07:00 -0700

My 2 Cents

1)
A standardized place for this would be nice, one of the sorcery bugs
involves documenting where functions 'should' go, so figuring this out
would be nice.

2)
Hard Coding of the groups and user system accounts,
Finding this kinda thru me off and took me a bit to figure out.
I was wondering the historical reasons for using this hard coding and
also wondering how many other people have SA added groups/users that
conflict with the hard coded ones.
After a little messing with I found several on my systems:
dmlb2000:
root@dmlb2000:/etc# grep svn group
svn_readers:x:122:svn_committers,dmlb2000
root@dmlb2000:/etc# grep 122 /var/lib/sorcery/codex/stable/groups
clamav:122:

dmlb2002:
dmlb2000@dmlb2002:~$ grep svn /etc/group
svn_readers:x:134:svn_committers
svn_committers:x:135:dmlb2000
dmlb2000@dmlb2002:~$ grep 134 /var/lib/sorcery/codex/stable/groups
ntp:134:
dmlb2000@dmlb2002:~$ grep 135 /var/lib/sorcery/codex/stable/groups
firewire:135:
dmlb2000@dmlb2002:~$ grep ^dmlb2000 /etc/group
dmlb2000:x:104:dmlb2000
dmlb2000@dmlb2002:~$ grep 104 /var/lib/sorcery/codex/stable/groups
junkbust:104:

dmlb2004:
dmlb2000@dmlb2004:~$ grep ^dmlb2000 /etc/group
dmlb2000:x:130:
dmlb2000@dmlb2004:~$ grep 130 /var/lib/sorcery/codex/stable/groups
cyrus:130:

- David Brown

On 8/9/05, Flavien Bridault <f.bridault AT fra.net> wrote:
> Hi people !
>
> A small detail has been pointed out by David Brown in [0] about
> create_account and create_group functions from the libaccount. Where is
> the right place in spells for them ? I look for this information in the
> wiki, but all that I found about this is the page[1] (which is outdated
> and hopelessly not referenced anywhere - that would be the time to do
> this).
> People placed them in PRE_BUILD, BUILD, INSTALL, I used to put them in
> FINAL, since it is additional stuff. But I finally wonder if it should
> not come at the highest level of building, for instance at the beginning
> of PRE_BUILD, because if the group or the account fails to be created,
> the software being installed will surely not work, so it is useless to
> compile and install it.
>
> Your thoughts ??
>
> [0] http://bugs.sourcemage.org/show_bug.cgi?id=9351
> [1] http://wiki.sourcemage.org/index.php?page=UID%2FGID
> --
> -- -- -- -- -- -- --
> Flavien Bridault
> Source Mage GNU/Linux - Disk Section Guru
>
> irc: vlaaad
> jabber: vlaaad AT amessage.be
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQBC+KoC2em/EE6e1kQRAqMZAJoCVxQAK/jJSvHtEVt5oswZnvMcVgCaA57o
> svY0AWbGfPtTiKDIhdqJCho=
> =D164
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
>
>




Archive powered by MHonArc 2.6.24.

Top of Page