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.

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 at 11:28

2 Answers 2

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

http://nersp.nerdc.ufl.edu/~dicke3/nerspcs/chmod.html

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

chown rachel:users myfile.txt

http://nersp.nerdc.ufl.edu/~dicke3/nerspcs/chown.html

share|improve this answer

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.