Home > OS >  Linux how do not delete a file
Linux how do not delete a file

Time:09-20

Hi:

I've tried chattr, error for chattr: Function not implemented while reading flags on movefile, I checked, said chattr can only modify however, I'm just built a text, while I check the information read however are nothing,,

1. So, if I want to locate file attributes cannot be deleted, do you have any other instructions? Don't say chmod, chmod certainly not, RWX and delete it doesn't matter,

2. If you have this kind of instruction, how to implement in c? There should be a similar API?

CodePudding user response:

The
refer to the original poster tjw316248269 response:
Hi:

I've tried chattr, error for chattr: Function not implemented while reading flags on movefile, I checked, said chattr can only modify however, I'm just built a text, while I check the information read however are nothing,,

1. So, if I want to locate file attributes cannot be deleted, do you have any other instructions? Don't say chmod, chmod certainly not, RWX and delete it doesn't matter,

2. If you have this kind of instruction, how to implement in c? There should be a similar API?

The root user can delete all files, modify the file permissions, except for the root user could only didn't remove permissions
  • Related