Originally Posted by till
Sudo is not available for chrooted users. If a user shall be able to use sudo, then it has to be a not chrooted user.
It makes not much sense to allow a normal user to activate or deactivate apache modules, as this affects all websites on that server and not just his own website. If he shall be able to configure apache, the he is the administrator of the server and has the root password anyway.
Running into this same problem myself. Just seen the post above and changed the user to non-jailkit.
I want to do it this way for two reasons:
1: So that most of the time, I won't have to mess around with passwords, just use putty, pageant and a shortcut - double-click and I'm in.
But I want to also be able to sudo nginx restart or sudo bash if need be.
Sudo exists for the root user, but not for my shell user. How can I enable this?
I've tried symlinking and copying sudo to the user's bin file, as the root user to the ispc user, but then I get "sudo: error while loading shared libraries: libutil.so.1: cannot open shared object file: no such file or directory"
I thought it was good practice to ssh in as a non-root user then sudo. Am I doing something wrong here?