why does ls -Z returns files names with question marks next to them? And what does this command do?
Asked
Active
Viewed 2,290 times
0
2 Answers
0
The accepted answer feels misleading. One can imply that ? is displayed whenever /etc/selinux/config SELINUX is set to disabled.
I have it set to disabled, but running ls -Z shows ? for some files while for others does return their security contexts. It is true that ? will be displayed when selinux is not installed/in use, but it is not the complete answer.
This article says ? means the absence of a security label for that file/object.
To add one, use chchon command.
Veverke
- 103