usermod change home directory no tilde

Bug #1928309 reported by No Name
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shadow (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

I believe usermod is in the passwd package.

Running `sudo usermod -d /home/username username` will result in correct terminal output as `username@hostname:~$`

But running `sudo usermod -d /home/username/ username` will output `username@/home/username:~$`, since usermod does not drop the trailing forward slash and the string "/home/username/" does not match with "/home/username".

This is a result of tab completion causing the extra forward slash. This bug is purely cosmetic.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: passwd 1:4.8.1-1ubuntu5.20.04
ProcVersionSignature: User Name 5.4.0-1048.50-aws 5.4.106
Uname: Linux 5.4.0-1048-aws x86_64
ApportVersion: 2.20.11-0ubuntu27.17
Architecture: amd64
CasperMD5CheckResult: skip
Date: Thu May 13 08:08:56 2021
Ec2AMI: ami-0d382e80be7ffdae5
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-west-1b
Ec2InstanceType: c5n.4xlarge
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: shadow
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
No Name (governmentconspiracy) wrote :
description: updated
affects: ubuntu → shadow (Ubuntu)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Well that's just fascinating! :)

This would be best reported at https://github.com/shadow-maint/shadow/issues. Would you mind opening an issue there?

Changed in shadow (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
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.