You have been subscribed to a public bug:

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)

** Affects: shadow (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images focal
-- 
usermod change home directory no tilde
https://bugs.launchpad.net/bugs/1928309
You received this bug notification because you are a member of Ubuntu Touch 
seeded packages, which is subscribed to shadow in Ubuntu.

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to