In linux, the file permission is set so that the operator is not allowed to delete files. online files and other files are in linux. now, the operator & nbsp; readable & nbsp; writeable & nbsp; can be modified, that is, the operator is not allowed & nbsp; delete & nbsp; files. how can I set this permission? thanks, $ & nbsp; chmod & nbsp; 644 & linux sets file permissions so that the operator is not allowed to delete files or online files?
In linux, the operator is prepared to read, write, and modify files, that is, to prevent the operator from deleting files,
How can I set this permission? thanks
------ Solution --------------------
$ Chmod 644 test.txt
Set the property of test.txt to-rw-r --
File owner (u) has read and write permissions
Users in the same group as the file owner (g) have read permission
Others (o) have read permission
------ Solution --------------------
Linux permissions cannot meet this requirement.
Chattr + a filename can be used to set the file to be deleted and can only append data.
However, you can set the program permission in the php program. Otherwise, the user will use the delete command.
------ Solution --------------------
X = 1 = executable = deletable.
------ Solution --------------------
Er, it can be deleted after testing 644 ..
------ Solution --------------------
You can create a file with the following permissions: 444
Add a file to the file (administrator privilege required)
The new file is set to 777, so that anyone can read and write the changes, but the administrator permission is required to delete the file.
Test (444)
------ Solution --------------------
------ Solution --------------------
--Test.txt (777)
------ Solution --------------------
How do numbers correspond to r, w, and so on?
------ Solution --------------------
Only 3
4 2 1
Readable and writable executable
7 indicates all
6 represents readable and writable
5 indicates that the task can be read and executed.
What is 777 Ah 755 .. These are permissions of different user groups...
LZ should search for relevant information .. It's actually quite simple.
------ Solution --------------------
Reference:
The idea on the fifth floor is not acceptable,
Because after 444 is set, no sub-directories can be seen (I am using a linux server connected via ftp)
Let me think about it again,
I already told you that linux permission control cannot meet your requirements.
You should control permissions in the PHP program. isn't the operation permission you delete or modify for users implemented in PHP ?!
------ Solution --------------------
Install a natruil-gsdk or something (the name may not be clearly remembered, but the English language is not good) and right-click it to open it as an administrator ". Of course, you can delete it.