I want to have a root privileges on some directories. How can I do this?
Create a simple nautilus script can also open a folder as root.
Save the above script as
Do not forget to give the script execution permission. You can use in terminal,
Or you can right click on the file, then go to Properties >> Permissions and check the box corresponds to Execute to give the script execution permission.
Open files and folders as root
There is a nice application
My solution is to add an option for “Open as Administrator” to directories.
As you can see, there is no “Open as Administrator” option when you right click on a folder:
First, add the package repository by opening your Terminal and typing:
A message will appear:
Now we’ve added the repository, it’s time to update our sources:
After you update, it’s time to install the package we want for our issue:
Finally, you should restart Nautilus:
And now the “Open as Administrator” option should appear:
You can do that in many ways:
2.open nautilus as a root
3.You can add "Open as administrator" as an extension to your right click:
i-Download the nautilus-gksu package for your architecture from either of these 2 locations, and save it in your downloads folder.
ii-On your 64 bit install downloaded nautilus-gksu_2.0.2-5ubuntu2_amd64.deb & extracted right in your Downloads folder
iii-On your 32 bit install downloaded nautilus-gksu_2.0.2-5ubuntu2_i386.deb & again extracted in Downloads folder so terminal command