[Pkg-sssd-devel] Bug#749722: Bug#749722: libsss-sudo: modified /etc/nsswitch.conf after purge
Timo Aaltonen
tjaalton at ubuntu.com
Mon Jun 2 10:52:12 UTC 2014
On 29.05.2014 15:59, Holger Levsen wrote:
> Package: libsss-sudo
> Version: 1.11.3-1
> User: debian-qa at lists.debian.org
> Usertags: piuparts piuparts.d.o
>
> Hi,
>
> during a test with piuparts I noticed your package leaves a modified
> /etc/nsswitch.conf after purge.
>
> From the attached log (scroll to the bottom...):
>
> 0m31.7s ERROR: FAIL: After purging files have been modified:
> /etc/nsswitch.conf not owned
>
> I've seen #748671 but this has nothing to do with multiarch, so I decided to
> open a new bug report.
>
> And then I executed this sed command from postinst/postrm manually on my
> machine and this didnt leave /etc/nsswitch.conf modified.
>
> So I manually debootstrapped, kept a copy of nsswitch.conf, installed and
> purged libsss-sudo and voila:
>
> # diff /etc/nsswitch.conf /etc/nsswitch.conf.bak
> 21d20
> < sudoers: files
>
> (And indeed my machine has no sudoers line in nsswitch.conf, so thats why.)
>
> postinst adds the sudoers line and postrm doesnt remove it.
Strange, purge works for me..
:: root at sid:/etc> cp nsswitch.conf nsswitch.conf-b
:: root at sid:/etc> apt-get install libsss-sudo
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatiedot... Valmis
Seuraavat UUDET paketit asennetaan:
libsss-sudo
0 päivitetty, 1 uutta asennusta, 0 poistettavaa ja 3 päivittämätöntä.
Noudettavaa arkistoa 0 t/20,1 kt.
Toiminnon jälkeen käytetään 39,9 k t lisää levytilaa.
Selecting previously unselected package libsss-sudo.
(Reading database ... 182251 files and directories currently installed.)
Preparing to unpack .../libsss-sudo_1.11.5.1-1_amd64.deb ...
Unpacking libsss-sudo (1.11.5.1-1) ...
Setting up libsss-sudo (1.11.5.1-1) ...
First installation detected...
Checking NSS setup...
Processing triggers for libc-bin (2.18-7) ...
:: root at sid:/etc> md5sum nsswitch.conf
203e340d8ea6205a796beb78c9e8ec73 nsswitch.conf
:: root at sid:/etc> md5sum nsswitch.conf-b
d204d419661fba0df52f9be8e2a29fdd nsswitch.conf-b
:: root at sid:/etc> dpkg --purge libsss-sudo
(Reading database ... 182256 files and directories currently installed.)
Removing libsss-sudo (1.11.5.1-1) ...
Checking NSS setup...
Purging configuration files for libsss-sudo (1.11.5.1-1) ...
Checking NSS setup...
Processing triggers for libc-bin (2.18-7) ...
:: root at sid:/etc> md5sum nsswitch.conf
d204d419661fba0df52f9be8e2a29fdd nsswitch.conf
--
t
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sssd-devel/attachments/20140602/1642c426/attachment.sig>
More information about the Pkg-sssd-devel
mailing list