Subject: Bug#3749: etc/sudoers unreadable

From: Michael Meskes <[email-masked]>
Date: Thu, 11 Jul 1996 19:28:19 +0200 (MET DST)

[email-masked] writes:
> 
> I upgraded sudo yesterday. Later a cron'ed script tried to use sudo but
> failed as the permission on /etc/sudoers is 0400:
> 
> miles:/etc [root] # ls -l sudoers
> -r--------   1 root     root          444 May 18 13:17 sudoers    
> 
> There is code in sudo.postinst to fix this to mode 640, but that code never
> gets executed on my box as I have a group "sudo" so that postinst exists.

Oops, I'm going to correct that. Sorry. 

> Michael, can't you just set mode 440 in the deb file so that an upgrade
> doesn't break things?

It has 440 in the .deb file which is incorrect, too btw. Just changing this
permission doesn't help as you probably won't install the new one if you
edited the old one already. 

BTW there's another bug in debian.rules. It installes /etc/sudoers twice
with different permissions. :-)

I close this bug immediately and upload the new version ASAP. It's just
installing on my system.

Michael

-- 
Michael Meskes                   |    _____ ________ __  ____
[email-masked] |   / ___// ____/ // / / __ \___  __________
[email-masked]                  |   \__ \/ /_  / // /_/ /_/ / _ \/ ___/ ___/
[email-masked]                |  ___/ / __/ /__  __/\__, /  __/ /  (__  )
Use Debian Linux!		 | /____/_/      /_/  /____/\___/_/  /____/

---

From: [email-masked]
Date: Thu, 11 Jul 96 08:40 EDT

Package: sudo
Version: 1.4.3-5  

-- 
Dirk Eddelb"uttel                             http://qed.econ.queensu.ca/~edd

---

From: Ian Jackson <[email-masked]>
Date: Tue, 16 Jul 96 13:56 BST

Michael Meskes writes ("Bug#3749: etc/sudoers unreadable"):
...
> edited the old one already. 

In any case dpkg will copy the permissions from the old to the new
file, so even if you do say `yes' or install it manually that won't
fix it.

The postinst has to do this.

Ian.