Solution to the problem that a user cannot create a folder in Linux: 1. Use the grep command to find the file and check the user permissions of the file; 2. Modify the file permissions to "drwxr-xrwx" by executing the "chmod 757" command That’s it.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What should I do if a user cannot create a folder in Linux?
Insufficient permissions for ordinary users to create files (directories) under Linux
## Reason: The user who performs this operation has The upper-level directory lacks corresponding permissionsThe upper-level directory in the above picture is test2, and the viewing permissions are as follows. The permissions of other users are r-x (read and execute). To create a new file under it, you need to write (w) Permissions Solve the problem: Modify the test permissions to drwxr-xrwx Command: chmod 757 test2It should be noted that: modify the permissions Generally, you need to switch to the user who owns the file for manipulation (or root) Verification result: In the picture below, the new file lucifer was created successfully Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What should I do if a user cannot create a folder in Linux?. For more information, please follow other related articles on the PHP Chinese website!