I have created two types of users, one is admin and another is a standard user.
ctrl+H is the shortcut to see hidden files in most of the linux file managers.
I want to disable that option for standard user. When a standard user tries to unhide files then the system won't do anything, just disable the hide and unhide options.
My primary goal is when any standard user press ctrl+H then system not show hidden files to standard user.
Secondary goal is there is no any other option to see hidden files for standard user.
I only concentrate to only revoke from seeing hidden files because making hidden files are easy and time saving as compare to make separate permission for each folder. Managing separate permissions for each folder is time consuming and sophisticated task and Also we need root privilege to manage permission or edit permission, I want to avoid many times calling for Root. Also when managing permission many times we confuse between system files/folder also there is probability to making any silly mistake during manage special permissions as per each folder/file.
In simple words I want revoke access of files which names are starting with .
dot
ls -a
? such user anyway can't reach and do anything with other users files (i.e. your files) (or even peek into if the permissions are set right). If such user is keen to destroy his home folder and his configs by messing with hidden files, it is really hard to prevent him from doing it. – sem-geologist Oct 28 '16 at 09:08ls -l
, or pressing Ctrl-H in nautilus. What precisely is your goal: to hide complexity from standard users, or to prevent them from seeing things they aren't allowed to? – zwets Oct 28 '16 at 09:12ls -a
, and obviously they can still be opened and read by any user. What sort of files are you trying to hide? What do you want to achieve by hiding them? What is the ultimate goal you want to achieve? – zwets Oct 28 '16 at 10:05Ctrl-H
shortcut? It only prevents users from seeing hidden files from nautilus, the default file manager. But users can still see hidden files usingls -la
command. – Anwar Oct 28 '16 at 10:41