-
chmod permissions.
Folder. Like what. chmod
tmp only sets the tmp folder permission to 0755
chmodr
tmp This setting The permission of the tmp folder and its subfolders is 0755
There are also three types of permissions for Linux folders:
r(read
Read): has the permission to read the content of the file (cat command); You have the permission to view the contents of the directory (ls command).
Execute): Have permission to execute the file (.)directives); You should have permission to enter the directory (cd command).
Write): have the permission to add, delete, and modify the content of the file; You have the permissions to add, delete, and modify the contents of the directory. w
It is possible to create, modify, and delete files in the directory, not only to modify your own files but also to modify other people's files, so a t permission pair has been added. x
Permissions are restricted, meaning that you can only modify your own files.
Linux:
The Linux operating system is a clone system developed based on the Unix operating system, which was born in 1991
years. Linux Desktop].
May 5 (this is the first time it was officially announced to the public). Later, with the help of the Internet network and through the joint efforts of computer enthusiasts all over the world, Unix has become the most used one in the world today
and the number of users is growing rapidly.
-
Add the -r parameter to pass read and write permissions to subfolders.
For example, chmod -r 777 filename.
-
The steps to assign permissions to a folder in Linux are as follows:
1.First of all, let's use the client tool (there are many tools, I use xshell), and log in to the system with the account of the folder that needs to be created, for example, I am using the root user now. In the red box, it says root certificate, and there is no problem with the logged-in user.
2.At this time, go to the directory where you want to create a new folder, for example, if we want to go to u1 to create a folder, then use the command cd u1. If the other folder: cd u1 out.
3.After entering the directory where you want to create a new file, you can directly enter the new file command: mkdir fanfanAfter it is created, you can see that the created directory exists under "ls".
4.At this time, you can view the permissions of the folder, and you can use the ls -la command to see the permissions of the subordinate folders. This solves the problem of assigning permissions to folders in Linux.
-
chmod permissions folder.
For example: chmod 0755 tmp This only sets the tmp folder permission to 0755
chmod -r 0755 tmp This setting has the permissions of the tmp folder and its subfolders to 0755
There are also three types of permissions for Linux folders:
r(read read): has the permission to read the content of the file (cat command); You have the permission to view the contents of the directory (ls command).
Execute): Have permission to execute the file (.)directives); You should have permission to enter the directory (cd command).
Write): have the permission to add, delete, and modify the content of the file; You have the permissions to add, delete, and modify the contents of the directory. w is that you can create, modify, and delete files in the directory, not only to modify your own files but also to modify other people's files, so a t permission is added to restrict the x permission, which means that you can only modify your own files.
Linux:
The Linux operating system is a clone system developed based on the UNIX operating system, which was born on October 5, 1991 [Linux desktop] (this is the time when it was officially announced to the public for the first time). Later, with the help of the Internet network and through the joint efforts of computer enthusiasts all over the world, it has become one of the most used UNIX operating systems in the world today, and the number of users is still growing rapidly.
I've had this problem before, they say it's a virus, I'm not, it's deleting, disabling a system file, it seems to be C: Windows System32, or something related to this, I'm restoring, if you have a disc you boot from the optical drive, and then copy those files over.
Actually, I've been putting up with it for a long time.
When operating under the command line, either switch to the Chinese input method or paste. If you are in an environment where there is no input method, it may be difficult to manipulate these directories. >>>More
It is recommended to use Yitong folder lock software, which supports all Windows systems. It can encrypt folders, encrypt files, and encrypt disks, which is safe and easy to use. After installing the software, right-click the folder you want to encrypt and select Yitong Folder Encryption in the right-click menu to encrypt the software.
PWD=1i9D Extraction Code: 1i9d file batch renaming is a simple and practical batch renaming software, with simple functions, simple operation, and practical focus, which can be easily completed by clicking the mouse to add files, set rules, and change names in batches. The file list supports drag-and-drop files, and the renaming rules include variable rules and replacement rules, and the rules can be renamed in batches.
You don't understand the difference between a project and a program. >>>More