On 6/12/12 3:00 PM, Oliver Fromme wrote:
> Damien Fleuriot <firstname.lastname@example.org...> 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
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/"' ?