How to move files into /usr/bin in Nautilus without getting permission errors

6,695

Solution 1

You can do it like this:

press Alt+F2 to open the 'Run Application' box
type gksudo nautilus in to the text box and press 'Enter'. This will prompt a password dialog box. Enter your sudo password and it will open nautilus with root privilege. From there you can move/copy files without any permission error.

Note: Just make sure that you don't delete/replace any system files.

Solution 2

Root Nautilus script. This script opens Nautilus as root in the directory you select. how to install here

Share:
6,695

Related videos on Youtube

aneeshep
Author by

aneeshep

Devops Engineer

Updated on September 17, 2022

Comments

  • aneeshep
    aneeshep over 1 year

    I'm trying to move some files into /usr/bin in Nautilus but I'm getting permission errors. I know I can do it via the terminal using sudo but how can I do it in Nautilus? I would expect it to popup a box for me to enter my password like the admin screens in Ubuntu but it doesn't.

    • Admin
      Admin over 13 years
      Moving files into /usr/bin is almost certainly wrong, if you need an application that is not packaged, and all users on the system should be able to use it, it should go into /usr/local/bin or in a directory under /opt. If you are the only user who needs this application, you can also keep it in your personal directory. Also see man hier.
  • Admin
    Admin over 13 years
    Because 'nautilus' is a GUI (a Graphical User Interface), you should run it via 'gksu' (or 'gksudo'), and not via 'sudo'... 'gksu' sets up a specific environment for 'X' (X Window System) ... 'sudo' is for programs, which have no graphical window(s)... ie. their output is confined to the Terminal, eg 'sudo updatedb'.... see the "Graphical sudo" section at help.ubuntu.com/community/RootSudo where it says: "You should never use normal sudo to start graphical applications .........