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?

Zanna
  • 70,465
will5234
  • 19
  • 1
  • 3
  • 1
    did you use sudo? – ravery Sep 15 '17 at 11:53
  • No I was drag and drop I use Ubuntu Desktop – will5234 Sep 15 '17 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 '17 at 11:58
  • 1
    @THelper -- he doesn't want to change permissions, he wants to write into a system folder – ravery Sep 15 '17 at 12:01
  • Write sudo nautilus in the terminal and the file explorer will open with root access. then use that to move the plugin. – Russo Sep 15 '17 at 12:06
  • ya I attempted change folder permissions didn't work lol Im attempting to add or write into a system folder and its not going so well ;[ for my silly media server – will5234 Sep 15 '17 at 12:06
  • Thank you Russo that worked but version of my plugin is not for LINUX like it said it was lol but thanks for solving my issue now I KNOW HOW TO DO IT – will5234 Sep 15 '17 at 12:19
  • @Russo please post that as an answer – wjandrea Sep 15 '17 at 17:32
  • 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 '17 at 20:17

2 Answers2

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>
Zanna
  • 70,465
Jaime
  • 1,420
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.

Russo
  • 1,888
  • @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 '17 at 09:15
  • Oh so sorry for my mistake; I didn't pay attention to the fact that someone else had edited it. :( – Zanna Sep 17 '17 at 11:17