Okay, so I'm having a weird issue where I've already done
chown -R myuser:myuser folderName
and chmod 777 -R folderName
and upon attempting deletion of these files or the folder using rm -f
, I get a mysterious and incredibly annoying error message:
root@delphi:/sys/kernel/security/apparmor/policy/profiles# sudo rm -rf usr.bin.freshclam.0
rm: cannot remove 'usr.bin.freshclam.0/sha1': Operation not permitted
rm: cannot remove 'usr.bin.freshclam.0/attach': Operation not permitted
rm: cannot remove 'usr.bin.freshclam.0/mode': Operation not permitted
rm: cannot remove 'usr.bin.freshclam.0/name': Operation not permitted
root@delphi:/sys/kernel/security/apparmor/policy/profiles#
Even though the folder and all its files are owned by me, the root user, and permissions are set to rwxrwxrwx
for the directory and all its included files, I simply cannot delete them. WHY??? Help would be appreciated here, I would like full control of my filesystem.
/sys
is a dynamically created filesystem representing the kernel-hardware interface - it's not something that you should normally be trying to manipulate "files" on – steeldriver Sep 10 '16 at 18:52