From owner-freebsd-security@FreeBSD.ORG Thu Jul 8 19:52:28 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75A1416A4CE for ; Thu, 8 Jul 2004 19:52:28 +0000 (GMT) Received: from zaphod.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id C228443D39 for ; Thu, 8 Jul 2004 19:52:27 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id C7751119DE; Thu, 8 Jul 2004 21:52:25 +0200 (CEST) Date: Thu, 8 Jul 2004 21:52:25 +0200 From: "Simon L. Nielsen" To: Fernando Schapachnik Message-ID: <20040708195225.GB761@zaphod.nitro.dk> References: <20040708153848.GF1169@bal740r0.mecon.gov.ar> <20040708155519.GH1169@bal740r0.mecon.gov.ar> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <20040708155519.GH1169@bal740r0.mecon.gov.ar> User-Agent: Mutt/1.5.6i cc: freebsd-security@freebsd.org cc: Brandon Grace Subject: Re: Root users shell == no existant shell /bin/bash X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 19:52:28 -0000 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Please don't top post...] On 2004.07.08 12:55:19 -0300, Fernando Schapachnik wrote: > En un mensaje anterior, Brandon Grace escribi=F3: > > For some reason su -c relates to "class" not "command" as in linux. I k= now > > about the booting into single user mode also. This happends to be the > > primary dns server and our secondary doesn't have the capacity to handl= e all > > the queries. Any other suggestions? > > Looks like a bug in the man page: > > su - root -c id > Password: ******** > uid=3D0(root) gid=3D0(wheel) groups=3D0(wheel), 2(kmem), 3(sys), 4(tty), = 5(operator), > 20(staff), 31(guest) No the manual page is correct; what's happening here is that su handles the "- root" arguments, and "-c id" is being passed to root's login shell where -c tells the shell to run the rest of the arguments as run commands. That is, at least the behavior of -c both for sh and tcsh. --=20 Simon L. Nielsen FreeBSD Documentation Team --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA7aX5h9pcDSc1mlERAj1hAKCYFsSlhUo82ag6dDkYMDdNjWv9RQCfc9fu e1do5aGo8/wXPj5mxxAlE4I= =39d9 -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--