Gentoo Archives: gentoo-dev

From: Oleg <lego12239@××××××.ru>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] acct-user/acct-group trouble
Date: Tue, 05 May 2020 11:24:02
Message-Id: 20200505112423.GA28211@legohost
1 Hi, all.
2
3 I'm creating a ebuild and need to create user/group during it installation.
4 As i create a package/ebuild for our company internal use, it useless to
5 request uid/gid to be saved in uid-gid.txt. Also, i don't need a constant
6 uid/gid, just want a user/group creation. This package will be installed on
7 various machines and i don't want to track unused uid/gid from uid-gid.txt
8 and also each of these machines. Any available is sufficient.
9
10 If i understand correctly, acct-user/acct-group doesn't allow me do this.
11 And i must choose a constant uid/gid and pray that
12 they willn't match existent ones on any machine, amn't it?
13
14 If so, can i use 'enewuser ${PN} -1 -1 "${UHOME}" ${PN} > /dev/null' as usual?
15
16 --
17 Олег Неманов (Oleg Nemanov)

Replies

Subject Author
Re: [gentoo-dev] acct-user/acct-group trouble "Michał Górny" <mgorny@g.o>