From owner-freebsd-hackers Tue Sep 5 13:33:26 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.11/8.6.6) id NAA04790 for hackers-outgoing; Tue, 5 Sep 1995 13:33:26 -0700 Received: from kithrup.com (kithrup.com [140.174.23.40]) by freefall.freebsd.org (8.6.11/8.6.6) with ESMTP id NAA04776 for ; Tue, 5 Sep 1995 13:33:20 -0700 Received: (from sef@localhost) by kithrup.com (8.6.8/8.6.6) id NAA16940; Tue, 5 Sep 1995 13:33:07 -0700 Date: Tue, 5 Sep 1995 13:33:07 -0700 From: Sean Eric Fagan Message-Id: <199509052033.NAA16940@kithrup.com> To: hackers@freebsd.org, roberto@keltia.frmug.fr.net Subject: Re: Change in behaviour of SU... Sender: hackers-owner@freebsd.org Precedence: bulk >#ifdef KERBEROS >#include >#include >#include > >#define ARGSTR "-Kflm" > >int use_kerberos = 1; >#else >#define ARGSTR "-flm" >#endif The "-c" is not an argument to su. It is an argument to sh. The original manpages for su said that any extra arguments would be passed to the subshell spawned, whatever that was. The changes I sent to freebsd a long time ago did that; those changes were checked in. When you say "su root -c ls" you are saying, "as root, do '/bin/csh -c ls'". If you say "su root exit", you are saying, "as root, do '/bin/sh exit'". Sean.