1

I cannot for some reason move a plugin folder for my server into /usr/lib/name

I get an error saying permission denied... I need this plugin to fix my issues... Does anyone know how I can get permission to perform this task?

9
  • 1
    did you use sudo?
    – ravery
    Sep 15, 2017 at 11:53
  • No I was drag and drop I use Ubuntu Desktop
    – will5234
    Sep 15, 2017 at 11:56
  • /usr is owned by root. I don't know the exact terminal command. but you can try sudo nautilus to get the file manager with root permissions
    – ravery
    Sep 15, 2017 at 11:58
  • 1
    @THelper -- he doesn't want to change permissions, he wants to write into a system folder
    – ravery
    Sep 15, 2017 at 12:01
  • 1
    Please don't use sudo nautilus Use the -H flag when running graphical applications with sudo, eg sudo -H nautilus And definitely don't randomly change file & directory permissions of system directories
    – Zanna
    Sep 16, 2017 at 20:17

2 Answers 2

1

/usr/lib/name, like other system folders, belongs to root. If you need to copy files there, you may use sudo that allows you to perform some tasks as root.

In the terminal, you can execute cp -r to perform a recursive copy

sudo cp -r <file> /usr/lib/<name>
0

You can run sudo -H nautilus in the terminal and the file explorer will open with root access. This will allow you to move the plugin.

You should be careful when doing this, as you can break your system by accidentally deleting critical files etc. Only use it when you really need it.

2
  • @Zanna, I didn't edit my answer after you have corrected my answer. Please check the edit history. I have now rolledback to your edit again.
    – Russo
    Sep 17, 2017 at 9:15
  • Oh so sorry for my mistake; I didn't pay attention to the fact that someone else had edited it. :(
    – Zanna
    Sep 17, 2017 at 11:17

Not the answer you're looking for? Browse other questions tagged .