Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I barely began to explore and learn command line, I found that if I download files while in root access the files are automatically locked. My question is if there is a way to remove the lock to make it more easily accessible and without having to be in root or using the nautilus command, help will be very much appreciated, thank you.

btw: running on Ubuntu 12.xx

share|improve this question
while I am trying to change th owner of the file it's showing like this chown sravan:users aircrack-ng-1.1 chown: changing ownership of `aircrack-ng-1.1': Operation not permitted what should I do? – user267039 Apr 9 '14 at 11:28
up vote 2 down vote accepted

You can easily do this from the terminal. When you download a file as root, it is owned by root and default permissions do not allow others to view or modify it. To give you access, you will need to change the owner to the user you want to have access. Assuming your username is brayan and the file is myfile.txt, you would use this command:

sudo chown brayan:brayan myfile.txt
share|improve this answer
nice thank you very much. – Ferdinand Jun 25 '12 at 18:09

You have a lot of approach, you can change de permission of the file or change your owner.

chmod ugo+rw myfile.txt

Or you can chagen the owner. Let's pretender your user is rachel, then type:

chown rachel:users myfile.txt

share|improve this answer

Your Answer


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.