[Fedora-packaging] packages which add user accounts: is fedora-usermgmt the way?

Christian.Iseli at licr.org Christian.Iseli at licr.org
Wed Sep 7 11:48:23 UTC 2005


enrico.scholz at informatik.tu-chemnitz.de said:
> you could do
> | useradd -u $[ $(cat /etc/fedora/usermgmt/baseuid) + 23 ] ... 

Hmm.  If all you're trying to achieve is to have a default fixed UID, but 
still allow for some local customization, why not something along the lines of:

| %{name}_UID=${%{name}_UID:-23}
| useradd -u $%{name}_UID

And then the admin who wants to customize package foo can run:
$ foo_UID=1012 rpm -ivh foo-1.0-1.blah.rpm
or
$ foo_UID=1012 yum install foo

(Note that I haven't tested this...)

					Christian





More information about the Fedora-packaging mailing list