Solution to the problem of insufficient permissions for ordinary Linux users to create folders (directories)

Solution to the problem of insufficient permissions for ordinary Linux users to create folders (directories).

1. Problem description:

Creating folder a prompts that there is no permission, promptsmkdir:cannot create directory 'a':permission denied.

2. Reason:

The user performing this operation lacks appropriate permissions on the parent directory.

3. Solution:

1.sudo created.

sudo mkdir a
  1. Enter the upper-level directory test, modify the permissions of the upper-level directory, and then execute the mkdir command.
sudo chmod 777 test

Guess you like

Origin blog.csdn.net/kaixinjiaoluo/article/details/134765039