Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2012 16:29:35 +0300
From:      Sami Halabi <sodynet1@gmail.com>
To:        Damien Fleuriot <ml@my.gd>
Cc:        Oliver Fromme <olli@lurza.secnetix.de>, freebsd-stable@freebsd.org
Subject:   Re: su problem
Message-ID:  <CAEW%2BogYa8xig=W_gtCSyZS%2B0AhFr%2B0ff0ZK-BHYuR1Q%2BtAxb9Q@mail.gmail.com>
In-Reply-To: <4FD73FCA.8000601@my.gd>
References:  <201206121300.q5CD0B7V004462@lurza.secnetix.de> <4FD73FCA.8000601@my.gd>

next in thread | previous in thread | raw e-mail | index | archive | help
%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 <ml@my.gd> wrote:

> 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.
> _______________________________________________
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEW%2BogYa8xig=W_gtCSyZS%2B0AhFr%2B0ff0ZK-BHYuR1Q%2BtAxb9Q>