usermod cannot accept username beginning with dash
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.
ProcVersionSign
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
That version is no more supported; and no expecting backport as it only concern 'security' problem.