Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262176AbTK1L7k (ORCPT ); Fri, 28 Nov 2003 06:59:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262181AbTK1L7j (ORCPT ); Fri, 28 Nov 2003 06:59:39 -0500 Received: from ns.suse.de ([195.135.220.2]:20115 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S262176AbTK1L7i (ORCPT ); Fri, 28 Nov 2003 06:59:38 -0500 To: mru@kth.se (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=) Cc: linux-kernel@vger.kernel.org Subject: Re: Strange behavior observed w.r.t 'su' command References: <3FC707B6.1070704@mailandnews.com> From: Andreas Schwab X-Yow: Did I do an INCORRECT THING?? Date: Fri, 28 Nov 2003 12:56:12 +0100 In-Reply-To: ( =?iso-8859-1?q?M=E5ns_Rullg=E5rd's_message_of?= "Fri, 28 Nov 2003 12:11:40 +0100") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 850 Lines: 26 mru@kth.se (M?ns Rullg?rd) writes: > Andreas Schwab writes: > >>> It appears that my su exec()s the shell, whereas the redhat and gentoo >>> su fork() and exec(). >> >> Yes, your su probably does not support PAM. > > I don't think it does. I still don't see the need to fork when using > PAM. Because PAM needs to do some cleanup after the shell has exited. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N?rnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/