|
Bugzilla – Full Text Bug Listing |
| Summary: | default timedir should be /var/lib/sudo | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Bdale Garbee <bdale> |
| Component: | Configure | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Bdale Garbee
2010-05-12 23:33:24 MDT
Historically. the time stamp files were stored in /tmp, which gets wiped during reboot on many (most?) systems. I moved it to /var/run a long time ago which has similar semantics wrt clearing at boot. It probably makes more sense to use a persistent directory. but the downside of this is that there is nothing to remove old time stamp files, so once they are created they will remain indefinitely. This is easily handled with a simple cron job but probably needs to be mentioned in the documentation. Also, while /var/lib is standard on Linux, it may not be present on other Unix systems so configure will have to try to determine an appropriate default depending on the system. The default timestamp directory in sudo 1.7.4 will be /var/db/sudo, /var/lib/sudo or /var/adm/sudo depending on which directories are present on the system. Closing, sudo 1.7.4 is out now. |