remove extended attribute : fails
-
26-09-2019 - |
Question
From a shell script, I'm trying to remove extended attribute
setfattr -x security.selinux file.txt
The file.txt has mode 777, but im getting "permission denied error".
How can I fix this?
Solution
It is likely that the user will need to run your script using sudo
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow