opensubscriber
   Find in this group all groups
 
Unknown more information…

f : freebsd-stable@freebsd.org 12 June 2012 • 9:10PM -0400

Re: su problem
by Damien Fleuriot

REPLY TO AUTHOR
 
REPLY TO GROUP




On 6/12/12 3:00 PM, Oliver Fromme wrote:
> Damien Fleuriot <ml@my.g...> 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@free... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@free..."

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.