Poor diagnostic when run by a non privileged user

Bug #401627 reported by grofaty
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Terminal
Invalid
Undecided
Unassigned
shadow (Debian)
Fix Released
Unknown
shadow (Ubuntu)
Triaged
Low
Unassigned

Bug Description

In Terminal executing command:
userdel -r user_name

Returns error:
userdel: unable to lock password file

This error is practically useless for non-geek user. The user does not have the privilege, so executing:
sudo userdel -r user_name
deletes the user.

I suggest to use more descriptive error message like: "User 'xxxxx' does not have permissions to delete user 'yyyy'".

Revision history for this message
Vish (vish) wrote :

Thank you for bringing this bug to our attention. However, a paper cut should be a small usability issue, in the default Ubuntu install, that affects many people and is quick and easy to fix. So this bug can't be addressed as part of this project.

- we do not expect average users to use the terminal , Hence not a papercut.
For further information about papercuts criteria, please read https://wiki.ubuntu.com/PaperCut.

Don't worry though, this bug has been marked as "Invalid" only in the papercuts project.

Changed in hundredpapercuts:
status: New → Invalid
affects: hundredpapercuts → gnome-terminal
Changed in gnome-terminal:
status: Invalid → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

that's not a gnome-terminal issue.

Changed in gnome-terminal:
status: New → Invalid
affects: gnome-terminal (Ubuntu) → ubuntu
affects: ubuntu → shadow (Ubuntu)
Revision history for this message
Nicolas François (nicolas-francois) wrote :

shadow uses lckpwdf / ulckpwdf to cooperatively lock the files.

These APIs do not provide any information on why a lock could not be received.

Since the locking issue can be caused by other issues than lack of priviledges, I don't think the proposed change would be valid.

Phillip Susi (psusi)
Changed in shadow (Ubuntu):
importance: Undecided → Low
status: New → Triaged
summary: - userdel command show "unable to lock file"
+ Poor diagnostic when run by a non privileged user
Changed in shadow (Debian):
status: Unknown → New
Changed in shadow (Debian):
status: New → Fix Committed
Changed in shadow (Debian):
status: Fix Committed → 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.