2017-04-04 16:41:22 |
Scott Moser |
bug |
|
|
added bug |
2017-04-04 16:42:33 |
Scott Moser |
summary |
passwd -l does not take --extrausers or otherwise work for extrausers |
cannot lock password for user created with useradd --extrausers |
|
2017-04-04 16:42:55 |
Scott Moser |
description |
% mkdir -p /var/lib/extrausers
% for f in passwd group gshadow subuid subgid shadow; do touch /var/lib/extrausers/$f; done
% useradd foo --extrausers --shell /bin/bash -m
% echo $?
0
% # cat /var/lib/extrausers/passwd
foo:x:1001:1001::/home/foo:/bin/bash
% passwd -l foo
passwd: user 'foo' does not exist
% passwd --extrausers -l foo
passwd: unrecognized option '--extrausers'
% usermod --lock foo
usermod: user 'foo' does not exist
% usermod --extrausers --lock foo
usermod: unrecognized option '--extrausers'
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: passwd 1:4.2-3.1ubuntu5
ProcVersionSignature: Ubuntu 4.9.0-15.16-generic 4.9.5
Uname: Linux 4.9.0-15-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Tue Apr 4 16:34:20 2017
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: shadow
UpgradeStatus: No upgrade log present (probably fresh install) |
passwd -l does not take --extrausers or otherwise work for extrausers.
Neither does usermod.
% mkdir -p /var/lib/extrausers
% for f in passwd group gshadow subuid subgid shadow; do touch /var/lib/extrausers/$f; done
% useradd foo --extrausers --shell /bin/bash -m
% echo $?
0
% # cat /var/lib/extrausers/passwd
foo:x:1001:1001::/home/foo:/bin/bash
% passwd -l foo
passwd: user 'foo' does not exist
% passwd --extrausers -l foo
passwd: unrecognized option '--extrausers'
% usermod --lock foo
usermod: user 'foo' does not exist
% usermod --extrausers --lock foo
usermod: unrecognized option '--extrausers'
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: passwd 1:4.2-3.1ubuntu5
ProcVersionSignature: Ubuntu 4.9.0-15.16-generic 4.9.5
Uname: Linux 4.9.0-15-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Tue Apr 4 16:34:20 2017
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: shadow
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2017-04-04 16:43:00 |
Scott Moser |
shadow (Ubuntu): status |
New |
Confirmed |
|
2017-04-04 17:16:51 |
Scott Moser |
description |
passwd -l does not take --extrausers or otherwise work for extrausers.
Neither does usermod.
% mkdir -p /var/lib/extrausers
% for f in passwd group gshadow subuid subgid shadow; do touch /var/lib/extrausers/$f; done
% useradd foo --extrausers --shell /bin/bash -m
% echo $?
0
% # cat /var/lib/extrausers/passwd
foo:x:1001:1001::/home/foo:/bin/bash
% passwd -l foo
passwd: user 'foo' does not exist
% passwd --extrausers -l foo
passwd: unrecognized option '--extrausers'
% usermod --lock foo
usermod: user 'foo' does not exist
% usermod --extrausers --lock foo
usermod: unrecognized option '--extrausers'
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: passwd 1:4.2-3.1ubuntu5
ProcVersionSignature: Ubuntu 4.9.0-15.16-generic 4.9.5
Uname: Linux 4.9.0-15-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Tue Apr 4 16:34:20 2017
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: shadow
UpgradeStatus: No upgrade log present (probably fresh install) |
passwd -l does not take --extrausers or otherwise work for extrausers.
Neither does usermod.
% mkdir -p /var/lib/extrausers
% for f in passwd group gshadow subuid subgid shadow; do touch /var/lib/extrausers/$f; done
% useradd foo --extrausers --shell /bin/bash -m
% echo $?
0
% # cat /var/lib/extrausers/passwd
foo:x:1001:1001::/home/foo:/bin/bash
% passwd -l foo
passwd: user 'foo' does not exist
% passwd --extrausers -l foo
passwd: unrecognized option '--extrausers'
% usermod --lock foo
usermod: user 'foo' does not exist
% usermod --extrausers --lock foo
usermod: unrecognized option '--extrausers'
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: passwd 1:4.2-3.1ubuntu5
ProcVersionSignature: Ubuntu 4.9.0-15.16-generic 4.9.5
Uname: Linux 4.9.0-15-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Tue Apr 4 16:34:20 2017
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: shadow
UpgradeStatus: No upgrade log present (probably fresh install)
Related bugs:
* bug 1679777: Adding and reporting ssh keys fails for user in extrausers |
|
2017-04-10 17:52:24 |
Brian Murray |
shadow (Ubuntu): importance |
Undecided |
High |
|
2020-05-20 01:27:07 |
Serge Hallyn |
shadow (Ubuntu): status |
Confirmed |
Invalid |
|