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

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

 



steve@xxxxxxxxx (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

Attachment: pgpeRymW2XXOH.pgp
Description: PGP signature

--
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