Date: Sun, 23 May 2010 12:24:30 -0400 From: jhell <jhell@DataIX.net> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: freebsd-ports@freebsd.org, Ade Lovett <ade@freebsd.org> Subject: Re: Users and groups kept after a port deinstallation Message-ID: <alpine.BSF.2.00.1005231215550.85568@pragry.qngnvk.ybpny> In-Reply-To: <4BF8C4F8.9090103@infracaninophile.co.uk> References: <AANLkTindTvyrfPRj_cGWUC3LXWI63bGN5azaXo_xYRVu@mail.gmail.com> <AANLkTikNB0LbKG1qtL90F-thxeCvvSqnBxOCCDSucVS6@mail.gmail.com> <20100522005313.26dcfbdb@gumby.homeunix.com> <AANLkTim9NqCGi_iPMuoivw0z2bzEXHkt39VPk6c7aHyt@mail.gmail.com> <4BF787E2.9010907@dataix.net> <20100522120815.063975ae@gumby.homeunix.com> <4BF7C6EE.3010001@dataix.net> <20100522134212.3d5447a8@gumby.homeunix.com> <4BF7FB7D.1010501@dataix.net> <20100522235425.1ab2c504@gumby.homeunix.com> <86aarr8q0m.fsf@gmail.com> <A8D32BA4-70D5-48DC-B992-8B093BD97774@FreeBSD.org> <4BF8A565.7040309@dataix.net> <4BF8C4F8.9090103@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 23 May 2010 02:02, Matthew Seaman wrote: In Message-Id: <4BF8C4F8.9090103@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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1005231215550.85568>