Subject: bin/12910: su does not use "-c" if it precedes user name
To: None <gnats-bugs@gnats.netbsd.org>
From: None <akua@mail.kerr1.com>
List: netbsd-bugs
Date: 05/11/2001 09:34:02
>Number: 12910
>Category: bin
>Synopsis: su does not use "-c" if it precedes user name
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 11 02:34:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: /usr/pkg/bin/bash
>Release: NetBSD-stable
>Organization:
Greg Kerr
Akua Co
>Environment:
K6, NBSD 1.51B
System: NetBSD lion.kerr1.com 1.5.1_BETA NetBSD 1.5.1_BETA (Akua-NBSD8-1.5-010322) #0: Tue Apr 17 02:58:53 EDT 2001 akua@lion.kerr1.com:/huge/netbsd/release/src/sys/arch/i386/compile/Akua8 i386
>Description:
su bin -c "ls -l"
does not do the same thing as
su -c "ls -l" bin
which does not execute the "-c" parameter
(also on FreeBSD the above works when user "bin" has /sbin/nologin
as his shell - on NetBSD I had to change shell to /bin/sh to have
it work)
>How-To-Repeat:
See Description
>Fix:
Copy source from Free BSD? :)
>Release-Note:
>Audit-Trail:
>Unformatted: