Re: packages which add user accounts: is fedora-usermgmt the way?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



enrico.scholz@xxxxxxxxxxxxxxxxxxxxxxxxx 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


--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux