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
- Enter the upper-level directory test, modify the permissions of the upper-level directory, and then execute the mkdir command.
sudo chmod 777 test