From owner-freebsd-stable@FreeBSD.ORG Tue Jun 12 13:29:36 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 789591065862 for ; Tue, 12 Jun 2012 13:29:36 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3112E8FC0A for ; Tue, 12 Jun 2012 13:29:36 +0000 (UTC) Received: by yhgm50 with SMTP id m50so3886919yhg.13 for ; Tue, 12 Jun 2012 06:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JIFj3E0iXVJc37dPPnI9u9IhpJ8rpOMFoIsEzlxBQQU=; b=03IGRY2Pfsq3ddGm48YRW0MAs8d7cX0ddma5EEjtLNQRwHwWP7H1XJqAIrD4zZKMov +SnMZi3MKi/cRwuhLIFPdxvjFpVJAYuY4YFCSFVAd0X749hfLCrp0XeMfLaaqF1NfZJK fmG+RXbmBSfAKLW6SgeVtadknJcCg5udJKc/OBQpYf9vERVRakoZI9CDcrfANKSRG1Ob uSKZBPvJbsbX5OBGLzsR+IsuFjHDRiHSC6m+Xa0s8j3a5vN1PAlhzRrYAeAR3IDIQSuA 93RCOFeNRKDntQAsifC/ML0x8b2ylfkWP661AVDtmWlF3JzUqnWDa/fkOSvEm90mQbl0 3Kvg== MIME-Version: 1.0 Received: by 10.60.3.234 with SMTP id f10mr20360152oef.66.1339507775518; Tue, 12 Jun 2012 06:29:35 -0700 (PDT) Received: by 10.182.44.101 with HTTP; Tue, 12 Jun 2012 06:29:35 -0700 (PDT) In-Reply-To: <4FD73FCA.8000601@my.gd> References: <201206121300.q5CD0B7V004462@lurza.secnetix.de> <4FD73FCA.8000601@my.gd> Date: Tue, 12 Jun 2012 16:29:35 +0300 Message-ID: From: Sami Halabi To: Damien Fleuriot Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Oliver Fromme , freebsd-stable@freebsd.org Subject: Re: su problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2012 13:29:36 -0000 %su -m root -c 'cd /etc/ssh/ && sed -i .bak -e "s/PermitRootLogin no/PermitRootLogin yes/"' Password: load: 0.00 cmd: su 42619 [ttydcd] 3.20r 0.00u 0.00s 0% 2088k :( I think there is no good solution but driving to the machine itself... Sami On Tue, Jun 12, 2012 at 4:10 PM, Damien Fleuriot wrote: > On 6/12/12 3:00 PM, Oliver Fromme wrote: > > Damien Fleuriot wrote: > > > Ok so, I've read all the replies so far and I'm a bit perplexed. > > > > > > Sami, before you drive 3 hours to and 3 hours fro, kindly log in as > sody > > > over SSH, then try "login" to connect *locally* as the root user. > > > > That won't work. Unless you've disabled the "securetty" check > > in /etc/pam.d/login, but it is there for a reason. > > > > Best regards > > Oliver > > > > > Aw :( > > > With a bit of luck, anything that would just start a command without > trying for an actual shell ? > > Perhaps su -m root -c 'cd /etc/ssh/ && sed -i .bak -e "s/PermitRootLogin > no/PermitRootLogin yes/"' ? > > That way he could toggle remote root logins. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Sami Halabi Information Systems Engineer NMS Projects Expert FreeBSD SysAdmin Expert