public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] acct-user/acct-group trouble
@ 2020-05-05 11:24 Oleg
  2020-05-05 11:34 ` Michał Górny
  0 siblings, 1 reply; 5+ messages in thread
From: Oleg @ 2020-05-05 11:24 UTC (permalink / raw
  To: gentoo-dev

Hi, all.

I'm creating a ebuild and need to create user/group during it installation.
As i create a package/ebuild for our company internal use, it useless to
request uid/gid to be saved in uid-gid.txt. Also, i don't need a constant
uid/gid, just want a user/group creation. This package will be installed on
various machines and i don't want to track unused uid/gid from uid-gid.txt
and also each of these machines. Any available is sufficient.

If i understand correctly, acct-user/acct-group doesn't allow me do this.
And i must choose a constant uid/gid and pray that
they willn't match existent ones on any machine, amn't it?

If so, can i use 'enewuser ${PN} -1 -1 "${UHOME}" ${PN} > /dev/null' as usual?

-- 
Олег Неманов (Oleg Nemanov)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] acct-user/acct-group trouble
  2020-05-05 11:24 [gentoo-dev] acct-user/acct-group trouble Oleg
@ 2020-05-05 11:34 ` Michał Górny
  2020-05-05 12:02   ` lego12239
  0 siblings, 1 reply; 5+ messages in thread
From: Michał Górny @ 2020-05-05 11:34 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 823 bytes --]

On Tue, 2020-05-05 at 14:24 +0300, Oleg wrote:
> Hi, all.
> 
> I'm creating a ebuild and need to create user/group during it installation.
> As i create a package/ebuild for our company internal use, it useless to
> request uid/gid to be saved in uid-gid.txt. Also, i don't need a constant
> uid/gid, just want a user/group creation. This package will be installed on
> various machines and i don't want to track unused uid/gid from uid-gid.txt
> and also each of these machines. Any available is sufficient.
> 
> If i understand correctly, acct-user/acct-group doesn't allow me do this.
> And i must choose a constant uid/gid and pray that
> they willn't match existent ones on any machine, amn't it?

You don't understand correctly.  Read the doc for ACCT_GROUP_ID.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] acct-user/acct-group trouble
  2020-05-05 11:34 ` Michał Górny
@ 2020-05-05 12:02   ` lego12239
  2020-05-05 12:23     ` lego12239
  0 siblings, 1 reply; 5+ messages in thread
From: lego12239 @ 2020-05-05 12:02 UTC (permalink / raw
  To: gentoo-dev

On Tue, May 05, 2020 at 01:34:41PM +0200, Michał Górny wrote:
> You don't understand correctly.  Read the doc for ACCT_GROUP_ID.

Found. Thanks.

-- 
Олег Неманов (Oleg Nemanov)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] acct-user/acct-group trouble
  2020-05-05 12:02   ` lego12239
@ 2020-05-05 12:23     ` lego12239
  2020-05-05 12:58       ` Alarig Le Lay
  0 siblings, 1 reply; 5+ messages in thread
From: lego12239 @ 2020-05-05 12:23 UTC (permalink / raw
  To: gentoo-dev

Hm. And what version should i choose for such ebuilds?..

-- 
Олег Неманов (Oleg Nemanov)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] acct-user/acct-group trouble
  2020-05-05 12:23     ` lego12239
@ 2020-05-05 12:58       ` Alarig Le Lay
  0 siblings, 0 replies; 5+ messages in thread
From: Alarig Le Lay @ 2020-05-05 12:58 UTC (permalink / raw
  To: gentoo-dev

On Tue 05 May 2020 15:23:34 GMT, lego12239@yandex.ru wrote:
> Hm. And what version should i choose for such ebuilds?..

It usually on version 0.

-- 
Alarig


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-05 12:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-05 11:24 [gentoo-dev] acct-user/acct-group trouble Oleg
2020-05-05 11:34 ` Michał Górny
2020-05-05 12:02   ` lego12239
2020-05-05 12:23     ` lego12239
2020-05-05 12:58       ` Alarig Le Lay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox