Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-22 Thread Christian Kastner
On 2015-02-22 07:43, Michael Gilbert wrote: On Sat, Feb 21, 2015 at 9:52 PM, Christian Kastner wrote: It's not backed up in jessie or later. The backup/md5sum stuff is preceeded by a test for and old version less than 1.7.4p4-4, so in wheezy and later, all the md5sum stuff is ignored during

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-22 Thread Michael Gilbert
On Sun, Feb 22, 2015 at 6:35 AM, Christian Kastner wrote: In wheezy and later, where /etc/sudoers already is a conffile, that is entirely for dpkg to handle, not for the *.preinst scripts. Anything in the *.preinst is exclusively for when upgrading from squeeze. So, the more I think about it,

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-22 Thread Christian Kastner
On 2015-02-22 17:50, Michael Gilbert wrote: On Sun, Feb 22, 2015 at 6:35 AM, Christian Kastner wrote: In wheezy and later, where /etc/sudoers already is a conffile, that is entirely for dpkg to handle, not for the *.preinst scripts. Anything in the *.preinst is exclusively for when upgrading

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-21 Thread Christian Kastner
On 2015-02-22 02:05, Michael Gilbert wrote: On Fri, Feb 6, 2015 at 7:02 PM, Christian Kastner wrote: I've looked into this now, and I believe that the --compare-versions issue and the chown/chmod issue is all there is to this bug. I have attached a new debdiff (v2) with fixes for both. I

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-21 Thread Michael Gilbert
On Fri, Feb 6, 2015 at 7:02 PM, Christian Kastner wrote: I've looked into this now, and I believe that the --compare-versions issue and the chown/chmod issue is all there is to this bug. I have attached a new debdiff (v2) with fixes for both. I reviewed your proposed changes, but I don't think

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-21 Thread Michael Gilbert
On Sat, Feb 21, 2015 at 9:52 PM, Christian Kastner wrote: It's not backed up in jessie or later. The backup/md5sum stuff is preceeded by a test for and old version less than 1.7.4p4-4, so in wheezy and later, all the md5sum stuff is ignored during upgrades. It is most certainly backed up in

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-21 Thread Christian Kastner
On 2015-02-07 01:02, Christian Kastner wrote: I have tested this patch in a number of combinations, including (but not limited to): sudo (squeeze) - sudo (jessie) upgrade sudo-ldap (squeeze) - sudo-ldap (jessie) upgrade Works as intended. An unchanged

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-18 Thread Christian Kastner
Hi, On 2015-02-07 01:02, Christian Kastner wrote: I've looked into this now, and I believe that the --compare-versions issue and the chown/chmod issue is all there is to this bug. I have attached a new debdiff (v2) with fixes for both. I have tested this patch in a number of combinations,

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-18 Thread Bdale Garbee
Christian Kastner deb...@kvr.at writes: Bdale, once such a confirmation (or another fix) is in, how would you like to proceed? I could help with the RT communication again Sure. I'm willing to merge a patch and do uploads, but need to know which path they want me to use since the sudo in

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-18 Thread Christian Kastner
On 2015-02-18 22:32, Bdale Garbee wrote: Christian Kastner deb...@kvr.at writes: Bdale, once such a confirmation (or another fix) is in, how would you like to proceed? I could help with the RT communication again Sure. I'm willing to merge a patch and do uploads, but need to know which

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-02-06 Thread Christian Kastner
Control: tags -1 + patch Hi again, On 2015-01-30 10:27, Christian Kastner wrote: On 2015-01-30 00:19, Andreas Beckmann wrote: Which is erroneously moved aside by sudo-ldap.preinst, thereafter dpkg unpacks sudo-ldap, takes over file ownership (incl. conffiles) from sudo and once it gets

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-30 Thread Christian Kastner
Control: tags -1 - patch On 2015-01-30 00:19, Andreas Beckmann wrote: On 2015-01-29 23:16, Christian Kastner wrote: Which is erroneously moved aside by sudo-ldap.preinst, thereafter dpkg unpacks sudo-ldap, takes over file ownership (incl. conffiles) from sudo and once it gets around to

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-29 Thread Christian Kastner
Hi Andreas, I'm not quite sure we're on the same page yet, but I'm also not 100% confident that I'm in the right. So here are some additional thoughts: On 2015-01-29 09:31, Andreas Beckmann wrote: And while switching sudo-sudo-ldap the following happens: sudo gets removed, conffile remains

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-29 Thread Andreas Beckmann
Hi Christian, thanks for looking into this. What we have here is a conffile shared between two packages that Conflicts+Replaces each other. That's even more weird than placing conffiles in multi-arch:same packages ... at least they don't ship different versions (but they did in lenny ...) I

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-29 Thread Christian Kastner
I just noticed that I completely overlooked your other comments to my original mail. Sorry about that! On 2015-01-29 09:31, Andreas Beckmann wrote: On 2015-01-28 23:56, Christian Kastner wrote: This is the first problem. It is of course possible for this file to be generally absent (it's a

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-29 Thread Christian Kastner
On 2015-01-29 21:25, Andreas Beckmann wrote: just to make notation clear /etc/sudoers is a *configuration file*, i.e. rules of preserving user changes apply since wheezy it is also a *conffile* i.e. shipped with the package at /etc/sudoers and managed by dpkg, not to be touched by

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-29 Thread Andreas Beckmann
just to make notation clear /etc/sudoers is a *configuration file*, i.e. rules of preserving user changes apply since wheezy it is also a *conffile* i.e. shipped with the package at /etc/sudoers and managed by dpkg, not to be touched by maintainer scripts before it was managed by maintainer

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-29 Thread Andreas Beckmann
On 2015-01-29 23:16, Christian Kastner wrote: True. But as you observed in your initial report, the same bug can be triggered in a clean jessie environment, where the configuration file / conffile distinction is not a factor. probably because the md5sums for wheezy and jessie are the same

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-28 Thread Christian Kastner
Control: tags -1 + patch On Sat, 24 Jan 2015 12:05:52 +0100 Andreas Beckmann a...@debian.org wrote: The upgrade to jessie with sudo-ldap/jessie went smooth, and thereafter I wanted to switch to sudo/jessie, which failed due to missing /etc/sudoers, the problem is reproducible in plain jessie,

Bug#776137: sudo: fails to switch between sudo and sudo-ldap: chown: cannot access '/etc/sudoers': No such file or directory

2015-01-24 Thread Andreas Beckmann
Package: sudo Version: 1.8.10p3-1 Severity: serious Hi, actually I only wanted to check whether sudo-ldap/wheezy leaving the obsolete conffile /etc/init.d/sudo after upgrades to jessie could cause problems. (Does not look like this, but you could consider using dpkg-maintscript-helper