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

12.04 LTS and I mistakenly protected a file named set using:

chmod 700 /home/jatin/Desktop/set

How do I unprotect it?

share|improve this question
chmod 755 does that. – NKN Feb 23 '14 at 18:46
up vote 1 down vote accepted

Step #1 = In terminal type "gksu nautilus".

Step #2 = Navigate to where the file or folder is.

Step #3 = Right click the file or folder, choose "properties", choose "permissions", and then choose the desired access settings. You can also change who owns the file or folder if you don't want it to be owned by root.

Don't forget to close the nautilus window afterwards - it runs with root permissions.


share|improve this answer

the answer is:

chmod a+rw filename

check this table:

#   Permission      rwx
7   full                111
6   read and write      110
5   read and execute    101
4   read only       100
3   write and execute   011
2   write only      010
1   execute only        001
0   none                000

and then

chmod a+r file  read is added for all
chmod a-x file  execute permission is removed for all
chmod a+rw file change the permissions of the file file to read and write for all.
chmod +rwx file On some UNIX platforms such as BSD, this will restore the permission of the file file to default: -rwxr-xr-x.
chmod u=rw,go= file read and write is set for the owner, all permissions are cleared for the group and others
chmod -R u+w,go-w docs  change the permissions of the directory docs and all its contents to add write access for the user, and deny write access for everybody else.
chmod = file    removes all privileges for all.
share|improve this answer

if you can connect as a root:

to change owner :

sudo chown user:usergroup /path -R

change the user as your own

-R to recursive so all the directory inside will be owned by user

to change permission :

sudo chmod 777 /path (An example to give permission drwxrwxrwx) 

sudo chmod 755 /path (An example to give permission drwxr-xr-x) so group and others can read and excute.

share|improve this answer
I don't think you want to 777 it. – Seth Feb 23 '14 at 18:56
i edited thanks for your comment – nux Feb 23 '14 at 18:59

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.