Bug 704 - /var/db/sudo/lectured/ is not updated
/var/db/sudo/lectured/ is not updated
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.8.14
PC Linux
: low low
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-20 18:20 MDT by Jonathan Roemer
Modified: 2015-08-07 10:27 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Roemer 2015-07-20 18:20:26 MDT
sudo version 1.8.14.pi fails to create a user entry in /var/db/sudo/lectured, resulting in the lecture being displayed every time sudo is used. This occurs whether or not Defaults lecture=once is specified in the configuration file. However, Defaults lecture=never is honored.

Workarounds
1. Set Defaults lecture=never
2. As root, touch the /var/db/sudo/lectured/<username> entry

Confirmed on the following:

Arch Linux ARM, Kernel 4.0.8
Arch Linux, Kernel 4.1.2

Relevant bug report on the Arch Linux bugtracker
https://bugs.archlinux.org/task/45722
Comment 1 Todd C. Miller 2015-07-20 20:17:34 MDT
I just committed a fix:
http://www.sudo.ws/repos/sudo/rev/1ff77fd5cc8f
Comment 2 Todd C. Miller 2015-08-07 10:27:35 MDT
Fixed in Sudo 1.8.14p2