regular users can't run tuptime (regression, autopkgtest failure)

Bug #1918848 reported by Dan Bungert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tuptime (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Due to permissions on /var/lib/tuptime as created by recent adduser, users which need the world permission bits to read that directory will be unable to run tuptime.

The error takes the form of:
ERROR:Checking DB file "/var/lib/tuptime/tuptime.db": unable to open database file

Dan Bungert (dbungert)
Changed in tuptime (Ubuntu):
assignee: nobody → Dan Bungert (dbungert)
tags: added: fr-1207
Changed in tuptime (Ubuntu):
status: New → In Progress
Revision history for this message
Dan Bungert (dbungert) wrote :

tuptime creates the directory for its default db location using adduser. The adduser changes to DIR_MODE=0750 result in the directory not having world readable mode, and then normal users are unable to read the db inside.

Attached patch does a chmod 755.

Revision history for this message
Dan Bungert (dbungert) wrote :
Dan Bungert (dbungert)
tags: added: patch
Dan Bungert (dbungert)
Changed in tuptime (Ubuntu):
assignee: Dan Bungert (dbungert) → nobody
Dan Bungert (dbungert)
Changed in tuptime (Ubuntu):
status: In Progress → Confirmed
Dan Bungert (dbungert)
tags: added: update-excuse
Mathew Hodson (mhodson)
Changed in tuptime (Ubuntu):
importance: Undecided → Medium
tags: added: regression-release
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Hi, this seems fine and I'll upload it presently. Can you also send it upstream to https://github.com/rfrail3/tuptime/pulls? (I also wonder if the code would match the intent ever-so-slightly closer if you wrote "chmod o+rx" rather than "chmod 0755" but that's super nit picky)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tuptime - 5.0.2ubuntu1

---------------
tuptime (5.0.2ubuntu1) hirsute; urgency=medium

  * Update permissions on the default directory of the database so that the
    adduser-created directory is ensured to be world readable. (LP: #1918848)

 -- Dan Bungert <email address hidden> Fri, 12 Mar 2021 12:09:02 -0700

Changed in tuptime (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.