• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Resolved Error: Permission denied to remove domain ID 3

Milos Jankovic

New Pleskian
Hi,

I have a problem deleting domain from Plesk. When I want to delete domain/subdomain in Plesk 12.5 I get error: "Error: Permission denied to remove domain ID 3"

I have been reading around the web and followed solution:

1 - Use Putty
2 - login to your acc
3 - use line: plesk bin domain -r domain.com

but I get error: "Could not open Repository at "/etc/sw/keys": Cannot open file
Error: must run as root.
exit status 1"

So my question is how to get root priveleges so I could delete domain using SSH. I logged in as a FTP user. I am using VPS. What option from list of "Access to the server over SSH" should I use?

Thanks,
Milos
 
@Milos Jankovic,

You are logging in as FTP user, which does not have the required permissions to run the command. No matter what option you use in Plesk, the FTP user will not get the required permissions (expected, as we do not want users to gain full access to the server).

You need to login with an account with privileges, one that was set up during the OS installation should do the job.
root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user and the superuser

When you want to run commands as root, just start the command with 'sudo' (meaning: super user do), like "sudo plesk bin domain -r domain.com", press enter, and you will be prompted for the root password. After you enter it and confirm, the command gets executed under the root privileges.
 
Login with root privileges was such a logical step. :) I just learned how to find the root user data on VPS configuration GUI. Everything else went fine after that.
urki, thanks a lot!
 
Back
Top