why does ls -Z returns files names with question marks next to them? And what does this command do?
Asked
Active
Viewed 1,902 times
0
-
2-1 for [a continued inability to read manpages](http://askubuntu.com/q/685620/158442). – muru Oct 15 '15 at 22:12
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
- 5