Wie kann der Benutzer den Inhalt eines Ordners auf fedora 14 nicht anzeigen?

401
tiongsquare

Angenommen, es gibt nur ein Benutzerkonto auf dem Betriebssystem, gehört es nicht zur Root-Gruppe. Gibt es eine Befehlszeile, die ich am Terminal eingeben könnte (durch su, um root zu werden), um die Anzeige des Ordnerinhalts einzuschränken? (lehne das Lesen nicht vom System ab). Vielen Dank!

0

1 Antwort auf die Frage

-1
pilona

The read permission is required to get a directory listing. If the user is not in the owning group of the directory…

chmod o-r /path/to/directory 

otherwise,

chmod go-r /path/to/directory 

That said, the user can still go into the directory, and potentially open further files or directories therein. You must remove the executable permission on the directory to disallow this.

chmod o-x /path/to/directory 

or

chmod go-x /path/to/directory 

Be careful when removing the owning group's permissions, as some of them are required for some daemons to properly function. You should just remove the user from the group instead.