Is it possible to restrict a user from seeing hierarchy of files?
The user shouldn't be able to see the hierarchy of files with ls or any other commands.
Is it possible to restrict a user from seeing hierarchy of files?
The user shouldn't be able to see the hierarchy of files with ls or any other commands.
If you don’t want other users to see the content of a directory, you can suppress the read right on it (chmod o-r directory. You may need to do it on all the hierarchy (find directory -type d|xargs chmod o-r)
Note that suppressing the read right doesn’t prevent the user to enter it and read its files if the user knows the file names. Only the execution right on the directory (and the read right on the file) is needed for that.