Permission Denied when trying to rename wp-content/plugins folder

As I was following many tutorials online for a possible solution, none has been successful.

What I have done so far:

  1. access via FTP(filezilla)

  2. locate the wp-content & plugin directory.

  3. attempted to rename : error: permission denied

  4. attempted tutorial “fixes”

    • after changing to different permission modes that was recommended, I still got the error: permission denied. and I reset the modes back to what they were originally.
  5. Extra info: I am logging in as my sudo and not my originalroot.

I am now stuck again and if anyone can direct/assist me on this matter, it is greatly appreciated!

(cannot access my admin page for wordpress because of a plugin installed. So I am trying to deactivate that plugin via ftp…)

Thank you!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @hk1

If you want to disable the PasswordAuthentication on the server and use your ssh-keys to login you can simply follow our existing tutorial here:

Once the ssh-key authentication is configured you can access the server via ssh just by connecting to the server using your ssh-client and not having to use PasswordAuthenticaion

Hope that this helps! Regards, Alex

Hello, @hk1

I will recommend you to double check that the user is added to the sudoers group. As part of initial steps on the Ubuntu 20.04 server which you can check here:—-granting-administrative-privileges

As root, run this command to add your new user to the sudo group (substitute the highlighted username with your new user):

usermod -aG sudo sammy

Note : Change sammy with your actual username

Now, when logged in as your regular user, you can type sudo before commands to perform actions with superuser privileges or use with SFTP clients.

Regards, Alex

This comment has been deleted