From owner-freebsd-questions@FreeBSD.ORG Mon Sep 4 08:00:38 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D62416A4EC for ; Mon, 4 Sep 2006 08:00:38 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from mail01.solnet.ch (mail01.solnet.ch [212.101.4.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82CD243D5E for ; Mon, 4 Sep 2006 08:00:24 +0000 (GMT) (envelope-from freebsdlists@bsdunix.ch) X-Virus-Scanned: by amavisd-new at mail01.solnet.ch Received: from mail01.solnet.ch ([127.0.0.1]) by localhost (mail01.solnet.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZpfVm3RUq+fK; Mon, 4 Sep 2006 08:00:21 +0000 (GMT) Received: from [192.168.1.101] (unknown [82.220.17.23]) by mail01.solnet.ch (Postfix) with ESMTP id 9492262726; Mon, 4 Sep 2006 08:00:21 +0000 (GMT) Message-ID: <44FBDCF8.9020601@bsdunix.ch> Date: Mon, 04 Sep 2006 09:59:52 +0200 From: Thomas User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: armstrong adam References: In-Reply-To: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: how can I su as root over telnet or ssh? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2006 08:00:38 -0000 Hi The manpage for su explains it. PAM is used to set the policy su(1) will use. In particular, by default only users in the ``wheel'' group can switch to UID 0 (``root''). Cheers, Thomas armstrong adam schrieb: > It really woks!!thanks, > but why this happen? > which part of the document explain this? > I browsed the documentation and cannot find it > > >> From: Jonathan Chen >> To: armstrong adam >> CC: questions@freebsd.org >> Subject: Re: how can I su as root over telnet or ssh? >> Date: Mon, 4 Sep 2006 14:19:18 +1200 >> >> On Mon, Sep 04, 2006 at 10:12:26AM +0800, armstrong adam wrote: >> > yes,the user logging on is in the wheel group, >> >> You should add the user to `wheel' via /etc/group, and not via >> the login-group. >> -- >> Jonathan Chen >> ---------------------------------------------------------------------- >> "Beer. Now there's a temporary solution." >> - Homer Simpson > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"