2

strangely I cannot run the sudo command for every new account I create that is not root. The server is completely new and wasn't touched so I don't know what's wrong.

for every command I try to run with sudo with a normal user I get

sudo: effective uid is not 0, is sudo installed setuid root?

I tried various solutions I found on the web including

chmod u+s /usr/bin/sudo

and

chown -R root:root /usr/bin

but nothing helped.

ls -l `which sudo`

shows

-rwsr-xr-x. 1 root root 123832 Oct 15 02:14 /usr/bin/sudo*

and finally

type -a sudo | awk '{print $NF}' | xargs ls -lF

gives

-rwsr-xr-x. 1 root root 123832 Oct 15 02:14 /usr/bin/sudo*

what could be the issue?

maddo7
  • 141

1 Answers1

1

For some reason new users automatically used jailshell which caused this incident. Switching to bash fixed the issue.

maddo7
  • 141