From owner-freebsd-isp Wed Nov 13 20:56:57 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEC8E37B40A for ; Wed, 13 Nov 2002 20:56:56 -0800 (PST) Received: from fire.org.nz (firewall.fire.org.nz [203.97.144.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 302D743E7B for ; Wed, 13 Nov 2002 20:56:55 -0800 (PST) (envelope-from andy@fud.org.nz) Received: by homer.fire.org.nz id <119053>; Thu, 14 Nov 2002 17:56:25 +1300 Message-Id: <02Nov14.175625nzdt.119053@homer.fire.org.nz> Date: Thu, 14 Nov 2002 17:56:37 +1300 From: Andrew Thompson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021108 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-isp@FreeBSD.ORG Subject: Re: su and root password References: <002701c28b94$c378f4e0$a977ca41@yogi> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Lewis Watson wrote: >I have a program that ssh's to my machine and needs to do a script that >calls pw useradd. I do not want to give root ssh ability so how can I make a >regular user ssh in and utilize pw useradd as root? I have the script and it >works great as root... I just can't figure out how to get around the >password prompt for su.... >Please pass me some suggestions. >Thanks. >Lewis > > If you have "PermitRootLogin no" in the config root is still able to log in using publickey. Then put command="pw useradd..." before the key in the authorized_keys file. Andy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message