-1

I would have thought that basic security principles would mean that users can't see files in the home directory of other users. Many many years ago I worked on Novell servers and I seem to recall they worked in that way. Anyone able to give some insight? thanks

3
  • I don't know why this is the default permissions (and certainly it might be different from one system to the next), but if you want to change this, see this answer.
    – user55325
    Feb 19, 2014 at 2:49
  • 3
    This seems like a major over-generalization. It's possible (just as it is for Windows), but it hasn't been the default on any distro I have ever used. How are you creating users? You sure you aren't using sudo rights to check this...? You should do an ls -al to check the perms.
    – nerdwaller
    Feb 19, 2014 at 2:56
  • Not sure why this question is voted down, it's a reasonable question.
    – Owl
    Aug 9 at 16:23

1 Answer 1

0

This depends on the file permissions on the user home directory. You can prevent other users from seeing your files by changing the folder or file permissions.

For example you can run this command to change permissions on your files

> chmod 700 filename

or this if you want your entire home directory.

> pwd
/home/username
> cd ../
> pwd
/home
> chmod 700 username

Your username is usually the same name as your home directory.

After you do this, only you and the root user will be able to view your files.

I hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.