Users and groups kept after a port deinstallation

jhell jhell at DataIX.net
Sun May 23 16:24:55 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Sun, 23 May 2010 02:02, Matthew Seaman wrote:
In Message-Id: <4BF8C4F8.9090103 at infracaninophile.co.uk>

> On 23/05/2010 04:47:49, jhell wrote:
>> But if a port can install a user there is no reason that it can not
>> uninstall a user via pw(8) that is available from bsd.commands.mk after
>> checking a recorded md5(1) sum that it could create upon installation
>> for the output of pw usershow/groupshow UID/GID.
>
> The trick would be to teach the ports how to tell if a port was being
> deleted for good, when trashing the user would be appropriate, or if the
> port was being deleted as part of the process of upgrading it, when
> you'ld want to keep the user.
>

That shouldn't actually be to hard. If a utility like the three main 
upgrade tools that are being used the most right now would export a 
variable for say "UPGRADING=yes" then the uninstall script could check 
against that to decide whether or not the port is being removed or 
upgraded and make the proper decision while alerting the admin to whats 
going on.


Regards,

- -- 

  jhell

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBAgAGBQJL+VbIAAoJEJBXh4mJ2FR+6d0H/RzxsitENOuEiG1j9l6cucod
taGMfoitDYEFe7umLAyx/qfcLVkxRoVKNcStXGdQYFmhgbs0U3LgRfeCroKHcgaG
GQkojvJvHMq0bGPXkGyM5Uqk2duN59dJbWyRqlfAxAt1b9SDl6LkHzfi4Bb0CoZ6
6/+izQ5Nl0nDDGGwzou2uCqhJ20YTm9N+XD5pdvDPPdC208wCc+1IPRNlZbx1stM
B4viIveIBNJei1ooNqH3qwzO/fdOpJhd09eZNncOGLKPguHNNmqa/UH0ftXIBykU
3edE+gP+bvnf0kYeFBofYJDrG7H6grAyRUoObcD42sROLoD9Wk/RTO/MXZ8ekjA=
=6JuP
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list