Normally, file such as
/etc/passwd have the permissions
644 which means that everyone has a right to read the file (
4) but only the owner has a right to read it and write to it (
I want to create a "limited" user on the system which only has read and write access to directories and files he actually owns. Even if system files such as
/etc/passwd have read permissions, I don't want that user to be able to read them.
I could change all files on the computer to be unreadable by all users who don't own them, but I fear that will break a great many things.
Is there any way to limit one specific user from viewing all files not owned by him?