Folders and files from administrator account accessible by all users (SOLVED))

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Ludd
Level 1
Level 1
Posts: 2
Joined: Tue Oct 29, 2019 1:01 pm

Folders and files from administrator account accessible by all users (SOLVED))

Post by Ludd »

Hello wonderful people,

I have created two new standard users.
When they log in to their accounts, they are able to access the files from my main account, which is an administrator account.

This is possible when the standard users go to file manager and click on HOME in the top bar. This does not work when they click on home in the side bar.

In properties of the folders and files, sharing is off.

How is this possible?
Last edited by Ludd on Tue Oct 29, 2019 2:59 pm, edited 1 time in total.
kreemoweet
Level 2
Level 2
Posts: 50
Joined: Sat Feb 20, 2016 12:08 am

Re: Folders and files from administrator account accessible by all users

Post by kreemoweet »

In most Linux distributions, all user files (for ANY non-root user) are readable by everybody ("world"),
so if you don't like that, you have to change the permissions on your files. The word "HOME" can mean
a couple of different things: (1) the directory /home/ which contains a subdirectory for each non-root user
containing the user's files, and (2) the /home/<username>/ directory which contains the files of the
currently logged-on and active user named <username>.
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: Folders and files from administrator account accessible by all users

Post by gm10 »

kreemoweet wrote:
Tue Oct 29, 2019 2:27 pm
In most Linux distributions, all user files (for ANY non-root user) are readable by everybody ("world"),
so if you don't like that, you have to change the permissions on your files.
Exactly, they are readable but not writable. To make them not even readable by anyone but their owner, log into the user account you want to secure and run:

Code: Select all

chmod 0700 ~
Anybody with root/sudo access will of course still be able to access them.
Ludd
Level 1
Level 1
Posts: 2
Joined: Tue Oct 29, 2019 1:01 pm

Re: Folders and files from administrator account accessible by all users

Post by Ludd »

That worked a treat. Thank you for the explanation and solution :-)
Post Reply

Return to “Software & Applications”