• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Sudo user doesn't have permission to use sudo

zigojacko

Basic Pleskian
Server operating system version
CentOs 7.9
Plesk version and microupdate number
18.0.45
I've granted sudo access manually to the main subscription user within Plesk yet when I do su username, it doesn't have access to use the sudo command, for example:-

sudo: command not found

I'm not sure if there is something I have missed. Surely it is possible to do this?
 
Permission and access are separate things. You may have permitted the user to use sudo, but that doesn't help if the user can't access the sudo binary.

Try su - username, does that change anything?

Is the subscription user in a chroot jail?
If yes, I strongly recommend against putting sudo in there because it defeats the purpose of the jail.
 
Permission and access are separate things. You may have permitted the user to use sudo, but that doesn't help if the user can't access the sudo binary.

Yes, this is the exact case in this scenario I now know.

Try su - username, does that change anything?

If I do that logged in as root, then it does switch shell to the user but there is no difference at all with what they can or can't run.

Is the subscription user in a chroot jail?
If yes, I strongly recommend against putting sudo in there because it defeats the purpose of the jail.

Yes, the user is in this one according to /etc/passwd - /usr/local/psa/bin/chrootsh
 
Back
Top