[Pkg-shadow-devel] useradd, no loginshell set in /etc/passwd
Serge E. Hallyn
serge at hallyn.com
Sat Dec 31 20:26:08 UTC 2016
That's expected:
-s, --shell SHELL
The name of the user's login shell. The default is to leave this field blank,
which causes the system to select the default login shell specified by the SHELL
variable in /etc/default/useradd, or an empty string by default.
Quoting Dirk Bangert (dbangert at gmx.de):
> Hello together,
>
> builded up a live-Linux for USB-Flashdrives based on Ubuntu 16.04
> (Xenial). Shadow-utils 4.2 are installed.
> Using the useradd command, I dont get an entry for the Loginshell in
> /etc/passwd.
>
> For example:
>
> # useradd foo
> # cat /etc/passwd | grep foo
> foo:x:1003:1003::/home/foo:
>
> # echo $SHELL
> /bin/bash
>
> ---------
>
> On former systems there was this entry. Like:
> foo:x:1003:1003::/home/foo:/bin/bash
>
> Can somebody show me a way to fix this new behavior without using
> the -s optin of useradd?
>
> Thanks an greetings from rainy germany
>
>
> Dirk Bangert
>
>
> _______________________________________________
> Pkg-shadow-devel mailing list
> Pkg-shadow-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-shadow-devel
More information about the Pkg-shadow-devel
mailing list