-2

Command sequence:

atlas:/> cd etc
atlas:/etc> mkdir dir1
mkdir: cannot create directory `dir1': Permission denied
atlas:/etc> mkdir dir1
mkdir: cannot create directory `dir1': Permission denied
atlas:/etc> mkdir dir1.
mkdir: cannot create directory `dir1.': Permission denied
atlas:/etc> 

How can I get out from this problem?

Eliah Kagan
  • 117,780

1 Answers1

2

To create a folder in /etc, you must use root permissions. Use this instead:

sudo mkdir dir1

If you need access to that afterwards, you will always have to use sudo, or you will have to change permissions of the folder or files within.

Eliah Kagan
  • 117,780
John Orion
  • 2,801