enrico.scholz(a)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