#755279 pmount does not consider X11 users physically logged

Package:
pmount
Source:
pmount
Description:
mount removable devices as normal user
Submitter:
Nicolas George
Date:
2014-07-19 14:57:06 UTC
Severity:
normal
#755279#5
Date:
2014-07-19 14:54:12 UTC
From:
To:
Dear Maintainer,

Consider the following session:

~ $ who am i
cigaes   pts/19       Jul 19 16:42 (:0)
~ $ pmount /dev/disk/by-label/CIGAES_16G test
You are not physically logged in and your system administrator does not
allow remote users to run pmount, aborting

(I am logged using 1:1.1.11-1.)

The problem is in src/policy.c, function user_physically_logged_in(): it
should accept lines made of a colon followed by a number.

It can be worked around by setting "not_physically_logged_allow = no" in the
config file, but that loses a feature that was requested in some other bug
reports. It can also be worked around by opening a useless session on a text
console.

Regards,