su problem
Damien Fleuriot
ml at my.gd
Tue Jun 12 13:10:39 UTC 2012
On 6/12/12 3:00 PM, Oliver Fromme wrote:
> Damien Fleuriot <ml at 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.
More information about the freebsd-stable
mailing list