Home » Questions » Computers [ Ask a new question ]

How can I prevent others from seeing the contents of my home directory, except for the public folder?

How can I prevent others from seeing the contents of my home directory, except for the public folder?

On Mac OS X, it's relatively easy to prevent people from seeing the files contained in your home directory: chmod 700 ~

Asked by: Guest | Views: 355
Total answers/comments: 3
bert [Entry]

"I'm afraid this isn't possible. A user can't access any file or folder anywhere in the tree of a directory for which he doesn't have read permissions. If the user does have read permissions for a directory (and all its superdirectories), he can ls and see all the files it contains.

It might not feel quite so tidy, but if you want to prevent users from being able to ls your home directory you'll have to create Public somewhere outside of ~. If it's easier for you to access your own public directory from ~/Public, make a symlink (e.g. ln -s ~/Public /Users/Shared/stalepretzel)."
bert [Entry]

"Open your home dir to be read:

$ chmod 0744 ~

and hide everything in there:

$ chmod 700 ~/*

then open up just the Public directory:

$ chmod 0744 ~/Public

Note: Edited the command order to make it correct"
Mthyvy [Entry]

lipitor 20mg pills <a href="https://lipiws.top/">where can i buy atorvastatin</a> lipitor 80mg for sale