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.

Is it normal that I can't create directories in /home partition as a normal user?

Example:

user@pc:/home$ mkdir test

mkdir: cannot create directory ‘test’: Permission denied

Is that normal?

share|improve this question
    
@ignis Please add your comment as an answer, so that mecropa can accept it, and question is marked as closed. –  bkd.online May 2 '13 at 21:55
    
@bkd.online Ok, done –  ignis May 3 '13 at 6:59
2  
Mind that if you do this and in the future you feel the need to create a user "test" you might run into trouble. –  Rinzwind May 3 '13 at 7:18
2  
Why are you trying to create a directory under /home? If you're trying to create a new user with a home directory, there are better ways to do this. I do not recommend creating a directory under /home for any other purpose. –  Flimm May 3 '13 at 8:16
add comment

3 Answers

Yes, it's expected, because your home is /home/user. /home is just the container for the home folders.

share|improve this answer
add comment

To be able to create a directory under the /home folder, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below:

cd /home

sudo mkdir <name>

enter image description here

share|improve this answer
    
Thx for that but the problem is that the owner of the directory is still root. the solution for now is chown -R username directory –  mecropa May 2 '13 at 21:25
    
@mecropa: chown -R is evil, just saying... be careful with that command. It can brick your OS. –  Takkat May 2 '13 at 21:33
    
Thanks for the answers, and I will be carefull :D –  mecropa May 2 '13 at 21:40
1  
@Takkat: Not if you know what you're doing. –  Flimm May 3 '13 at 8:15
add comment

Don't forget to change the ownership of the created folder of a normal user won't be able to access it. sudo chown user:group newFolder

share|improve this answer
add comment

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.