Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2012 15:10:34 +0200
From:      Damien Fleuriot <ml@my.gd>
To:        freebsd-stable@FreeBSD.ORG, ml@my.gd
Cc:        Oliver Fromme <olli@lurza.secnetix.de>
Subject:   Re: su problem
Message-ID:  <4FD73FCA.8000601@my.gd>
In-Reply-To: <201206121300.q5CD0B7V004462@lurza.secnetix.de>
References:  <201206121300.q5CD0B7V004462@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/12/12 3:00 PM, Oliver Fromme wrote:
> Damien Fleuriot <ml@my.gd> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD73FCA.8000601>