3

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?

4
  • @ignis Please add your comment as an answer, so that mecropa can accept it, and question is marked as closed. May 2, 2013 at 21:55
  • @bkd.online Ok, done
    – ignis
    May 3, 2013 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, 2013 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, 2013 at 8:16

3 Answers 3

5

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

2

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

2
  • 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, 2013 at 21:25
  • @mecropa: chown -R is evil, just saying... be careful with that command. It can brick your OS.
    – Takkat
    May 2, 2013 at 21:33
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .