Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm pretty new to ubuntu, or linux for that matter, and I'm trying to perform the simplest activity ever, copy and paste a file; for some reason, when I right-click the folder /usr/bin I see that the 'paste' option is gray (meaning I can't select it).

Why is that? I'm pretty sure I'm the ROOT User. I can see "Account type = Administrator" on the account's settings.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

You're not the root user; you are a user which has the privilege to become root, using the sudo (or various graphical surrogates) method.

In Ubuntu (and in most not-embedded Unix environment) you normally work, and have the privileges, of a normal user. Only deliberately you can override the normal rules; it is a way of telling you that you have to know what you are doing. It is a great safety net that works normally quite well(1).

For example, although it can have legitimate uses, trying to add manually a file to /usr/bin is normally wrong.

You can find all the info you need here: https://help.ubuntu.com/community/RootSudo

(1) although remember that Unix, in general, gives you rope(2) if you really want to hang yourself.

(2) You can run the file manager application as root, as explained in the other answer.

Alas, you shouldn't.

This is the rope I mentioned in (1). A wrong click, a spurious double click, and you can have a completely messed up system, to the point of having to reinstall it. I am a power user, and I have to use root powers maybe... once a week? And most of the time is just to install some program, which you can do easily via the graphical application.

You should be able to do all of your work in normal mode; copy and paste between places you own works perfectly with the graphical interface. Why and what are you trying to copy to /usr/bin?

share|improve this answer
    
So, the GUI is completely useless? :/ I mean, copying and pasting is a pretty common action, I have to write the whole thing down every time I want to do so? :/ not very practical. –  feresr Apr 29 at 3:42
    
It's common sense a user should not be able to modify the system files, even if you use sudo you are in a risk of wrongly deleting something important from the system even when all you wanted was to modify a single icon or image. –  xangua Apr 29 at 4:12
2  
@feresr why useless? You can copy your executables in your ~/bin directory, where they will be found and executed, as if they where in /usr/bin/ --- and the GUI will let you do that. Out of the box. And if you mess things up, you can recover your system because you are messing up only your user, not all the system. I do not know how to explain this in a clearer way... –  Rmano Apr 29 at 4:40
    
@feresr You can copy and paste in the GUI, but not in the system directories. When messing with system directories it's better to take your time since a wrong action could lead to the complete ruin of the whole system. In other words the time taken to do the task manually running sudo et al shouldn't really matter because you should be taking your time doing that stuff anyway. If you prefer to ruin your system you can always activate the root account and use that as if it was your normal account. Then don't blame the OS when you'll have ruined your system/lost all your data. –  Bakuriu Apr 29 at 11:13

run this command in terminal:

sudo nautilus

nautilus is the filemanager in ubuntu if you are using it to copy/paste your files where you need root access you need to run your filemanager as root

share|improve this answer
    
See my comment below. I get that it is good practice to have some actions protected by a root user, but copying and pasting?. Do I have to do this every time I want to use the file explorer?. –  feresr Apr 29 at 3:43
1  
not every time , only when you are trying to copy/paste into protected places or places your user/group dont have access to ...still you can set nautilus to run as root by defualt but i dont recommand that –  k961 Apr 29 at 3:46
    
especially copying and pasting is something that should be done only with great care when you're root. –  Shadur Apr 29 at 6:49
    
Makes sense now. Thank you guys! really appreciate it –  feresr Apr 29 at 11:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.