[Pkg-shadow-devel] Bug#479406: su fails for users with a POSIX script as their login shell
Stephane Chazelas
stephane_chazelas at yahoo.fr
Sun Jul 19 19:58:49 UTC 2009
2009-07-18 21:26:56 +0200, Nicolas François:
> Ping
Sorry, forgot to reply to your earlier email.
> Any opinion on this?
>
> My current preference would be to close the bug.
> It could also be tagged wontfix: I'm not sure the feature is that useful,
> and switching to execlp/execvp/system could break existing behaviors.
What kind of existing behavior would that break when using
execvp instead of execve?
It's more a matter of consistence to me. But it's true it's no
big deal.
[...]
> > Are there other su / login implementations which behave that way?
[...]
AFAICS, the "login" from util-linux (derived from BSD) and the
one from NetBSD and OpenBSD at least do use the exec?p variants
(from a quick look at there source code).
The OpenSolaris one seems to be checking for that case (pw_shell
being a shell script) explicitely and treats it specially:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/login/login.c#2507
Best regards,
Stephane
More information about the Pkg-shadow-devel
mailing list