GNOME Bugzilla – Bug 700715
Prevent users from being 'locked out'
Last modified: 2013-06-03 15:43:58 UTC
It is possible for the currently logged in user to disable their account and then be unable to undo this action. For example: 1) Open Settings -> Users 2) Unlock 3) Select current user -> Change password -> 'Disable this account' 4) Lock 5) Now try and repeat this action. From this state, it is no longer possible to unlock the user settings panel (as the password has been disabled), the user must manually recover with $ sudo passwd -u `whoami`, or log in as root.
Created attachment 244779 [details] [review] user-accounts: Don't let user disable own account This prevents the problem by removing the 'Disable this account' action from the password dialog of the currently logged in user.
Created attachment 245114 [details] Spliced screenshot showing a 'before and after' of the proposed patch (id=244779) This shows how the 'Disable this account' action is not available for the currently logged in user (does not affect other accounts). Excuse the amateurish gimp skills! ;-)
Review of attachment 244779 [details] [review]: Patch looks good to me.
gnome-3.8 - a107db388fff055b8be370cee5454de4e8489387 master - 1a770694edc1d62280634f3c5ddb25024ede8e22