[10651] in Athena Bugs
decmips 7.4H: su(1)
daemon@ATHENA.MIT.EDU (mhpower@Athena.MIT.EDU)
Tue Jul 6 15:48:40 1993
From: mhpower@Athena.MIT.EDU
To: bugs@Athena.MIT.EDU
Date: Tue, 06 Jul 93 15:48:32 EDT
System name: m66-080-5
Type and version: KN01 7.4H
Display type: PMAX-MFB
What were you trying to do?
Decide whether su'ing to an account would always start the
shell from that account's /etc/passwd entry, with the default
options. Unlike the BSD man page, there's no mention of
passing arbitrary arguments to the shell.
What's wrong:
It works anyway, e.g.,
# su daemon -c /usr/ucb/whoami
daemon
What should have happened:
It should have been mentioned in the man page, or else
disabled. su should not perform undocumented processing
of the command line, since this can sometimes be exploited
to subvert the intended uses of accounts with nonstandard
shells.
Please describe any relevant documentation references:
su(1)