I have a server running under Debian wheezy. I want to create a directory in /. I can't without running sudo mkdir myDirectory. Once in /myDirectory, I can't write anything or create a repertory. I tried to run as root: chmod -R /myDirectory 775, but in vain. I am sure that I am missing something obvious, but I can't find what. Could somebody point me in the right direction?
I don't have writing access to a subdirectory in /
command line;permissions
Indeed, it seems that you haven't understood the basics of file permissions.ls -ld /myDirectory shows you that root is both the owner and the group of the new directory. I.e. if you access the directory then you do that as other. And you have defined (775) that other have no write permission in this directory.Probably the best solution is to change the owner:sudo chown $USER: /myDirectory