usermod cannot accept username beginning with dash

Bug #993411 reported by Vasya Pupkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shadow (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I accidently executed usermod -l -d username (intended command was passwd -l -d username) which renamed username into -d. Now I am trying to rename it back, but it thinks that -d is an option. I tried following:

usermod -l username -d
usermod -l username "-d"
usermod -l username '-d'
usermod -l username \-d
usermod -l username -- -d

All failed.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: passwd 1:4.1.4.2-1ubuntu2.2
ProcVersionSignature: Ubuntu 2.6.32-41.88-server 2.6.32.59+drm33.24
Uname: Linux 2.6.32-41-server x86_64
Architecture: amd64
Date: Wed May 2 20:52:51 2012
InstallationMedia: Ubuntu-Server 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: shadow

Revision history for this message
Vasya Pupkin (shadowlmd) wrote :
Revision history for this message
dino99 (9d9) wrote :

That version is no more supported; and no expecting backport as it only concern 'security' problem.

Changed in shadow (Ubuntu):
status: New → Invalid
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.