1
So, I got locked out of a server (sshd seems to have stopped responding). I got a reverse shell (added a jenkins job that gives me a reverse shell), but I've hit a snag - su wants a terminal, and refuses to run.
So, is there a way to run su noninteractively, or some other way of escalating to my normal user account?
And as you restart ssh will be wise to add jenkins in sudo :) – Romeo Ninov – 2015-05-02T16:31:02.680
but jenkins doesn't normally ever need sudo. doing so would be a security risk – hintss – 2015-05-02T16:32:08.497
No risk if you do not provide passwordless sudo access. And provide ability to sudo to standard user, not root – Romeo Ninov – 2015-05-02T16:33:36.937