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

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Tue Jul 5 19:06:40 UTC 2005


steve at silug.org (Steven Pritchard) writes:

>> rpm does not offer a way to determine whether a package creates an user
>> or not. So the 'just add an ... user before installing' requires lot of
>> manual work,
>
> $ rpm -qp --requires openvpn-2.0-2.x86_64.rpm | grep useradd
> /usr/sbin/useradd  
> $ rpm -qp --scripts openvpn-2.0-2.x86_64.rpm 
> preinstall scriptlet (using /bin/sh):
> if ! id openvpn > /dev/null 2>&1 ; then
>     /usr/sbin/useradd -r -s /sbin/nologin -c OpenVPN -d /etc/openvpn openvpn
> fi
> [...]

And now: do this for a 'yum install ...' transaction which lists 100 new
packages and tell me all new users inclusive information like homedir,
shell and gecos...

Or for a nightly 'yum upgrade' operation which adds new packages because
of changed dependencies.



Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20050705/85a583f6/attachment.sig>


More information about the Fedora-packaging mailing list