954,249 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Change folder permissions

I have a folder and i can't paste anything or save anything in it. Can i change permissions in terminal?

web3
Junior Poster in Training
75 posts since Oct 2009
Reputation Points: 10
Solved Threads: 1
 

Yes. What directory are you trying to put the data in? Paste the output of:

ls -ald /path/to/dir
ls -ald /path/to
ls -ald /path
ls -ald /


Also what user are you logged in as? You can find out by typing id .

You can granteveryone read/write access to the directory but that is usually a bad idea.

sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
 

I am only user i installed ubuntu 9.10 yesterday and can you give me the code to grant everyone read/write access.

web3
Junior Poster in Training
75 posts since Oct 2009
Reputation Points: 10
Solved Threads: 1
 

* This is dangerous from a security standpoint

chmod -R a+rwx /path/to/dir
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
 

login as root
then use the following command
chmod 777 filename to make it read,write and execute

josephkn
Newbie Poster
5 posts since Feb 2009
Reputation Points: 11
Solved Threads: 0
 

sudo chmod 777 FILENAME

NOTE: This is really NOT recommended for all the files. Be extremely careful while using this.
alternatively you can do chmod 644 which will only give write permission to the root user and everyone else gest only read permission.

Crash~Override
Junior Poster
132 posts since Oct 2009
Reputation Points: 10
Solved Threads: 8
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: