By default Ubuntu file manager doesn't have an option to open folders with elevated permissions; you need nautilus-admin
plugin for that.
Open Software Center
and search for nautilus-admin
package. Install it. Once the plug in has been added, stop file manager (the command for that is nautilus -q
) and restart it.
Now, you can copy and paste files in file manager with Admin permissions , if you right-click on body of the folder and select "Open as Administrator".
However, if the folder where you try to copy the file has permissions other than root user, for example userA:userA
, you will have to use command line to add yourself to userA group (considering that you have sudo
privileges). There is no GUI way to do that!
ls -l /path/to/destination folder
. Then see what is the user ownership and group ownership of that folder. If you do not belong to those groups , you could add yourself to those groups, and then you will have permissions. If that directory is root owned, usingsudo cp file.zip /path/to/destination
will suffice.ls -ld /path/to/directory
, otherwise it will list directory's content!