vlock <= root cannot unlock

Bug #76379 reported by hanasaki
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vlock (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: vlock

run vlock as root and then try to unlock
OR
run as a regular user and try to unlock as root when prompted, after intentionally/accidentally, failing to unlock as the user

authentication fails. I am guessing this is due to PAM and the fact that ubuntu does not allow root login on the console. VLock should still work for root.

Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Confirming, but I do not see how we could deal with that.

Changed in vlock:
status: Unconfirmed → Confirmed
Revision history for this message
Frank Benkstein (frank-launchpad) wrote :

vlock uses the "vlock" PAM service, defaulting to "other" as every PAM application does. Just provide an /etc/pam.d/vlock that does allow root to authenticate.

Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

The problem is if your root account does not have a password (which is by default on Ubuntu). If you do :
$ sudo -s
# vlock

On a standard Ubuntu installation you can not unlock vlock.

Revision history for this message
Frank Benkstein (frank-launchpad) wrote :

Then you probably should put something like

# comment out the following line if you have a root password set
# and want to lock as root
auth sufficient pam_rootok.so
@include common-auth

into /etc/pam.d/vlock. That way users will at least be unable to lock
themselves out of their machines using "vlock -a".

Revision history for this message
alien8 (fb-alien8) wrote :

Just in case since the bug is still open. Add youself to the unix group vlock and it works as expected using vlock 2.2.2.

Mathias Gug (mathiaz)
Changed in vlock (Ubuntu):
importance: Undecided → Low
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.