1

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?

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
webminal.org
  • 44,948
  • 37
  • 94
  • 125

1 Answers1

1

It is likely that the user will need to run your script using sudo.

Dennis Williamson
  • 346,391
  • 90
  • 374
  • 439