M BUZZ CRAZE NEWS
// news

Can't create folders or documents in subdirectories of /home/user/

By Sarah Rodriguez

Complete Ubuntu newbie here, trying to make the switch but hitting a few walls.

I installed Ubuntu 15.10 last night on a new, blank hdd. It's the only OS on this system.

I would like to make some directories within my Documents folder, but when I try to create the folder (from the GUI) I get the error "Error creating directory:Permission Denied". Same behavior when trying to create a new document, or when trying to save the output from a program into any of the subfolders.

I can, however, create files or directories in the /home/user folder without issue.

I know there are many things which require elevated permissions in Ubuntu file management, but I can't believe that saving a document to my Documents folder would be one of them!

Is it normally possible to right-click-create a sub-folder of Documents, Pictures, etc? Or to save a document from a program?

This is the output of ls -ld ~ ~/Documents:

drwx------ 26 rick rick 4096 Mar 19 15:36 /home/rick
drw-r--r-- 2 rick rick 4096 Mar 19 02:08 /home/rick/Documents
2

1 Answer

~/Documents is missing the x permissions (execute). Please do a

chmod 755 ~/Documents

And you can add items to that directory. It should looks similar to

drwxr-xr-x 2 rinzwind rinzwind 4096 mrt 2 19:21 Documents

And to explain this: the permissions on a directory are a bit different to files.

  • "r" or "read" permissions means you can list items inside that directory.
  • "w" or "write permissions means you can create, rename, write and remove files inside that directory and edit the directory's attributes.
  • "x" or "execute" permissions means you can enter and access files and directories inside the directory.

So "execute" is a must to be able to do anything inside the directory.


  • "s" or "sticky" bit makes it so that only the owner can rename and remove files and directies inside the directory.
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy