Users can browse eachothers home folders?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Users can browse eachothers home folders?

Postby Ax. on Tue Feb 09, 2010 4:34 pm

I got a problem, I made several users. One for me, one for my gf and one for guests. But I was able to enter my home-folder from the guest account. How to I fix so the guests can only reach his own?
Ax.
Level 1
Level 1
 
Posts: 33
Joined: Thu Aug 28, 2008 3:06 pm

Linux Mint is funded by ads and donations.
 

Re: Users can browse eachothers home folders?

Postby SiKing on Tue Feb 09, 2010 6:09 pm

From the command line run:
Code: Select all
ls -l /home
(that's the lower-case ell, not a one) and post the results.
SiKing
Level 5
Level 5
 
Posts: 576
Joined: Mon Sep 29, 2008 10:57 pm
Location: Las Vegas

Re: Users can browse eachothers home folders?

Postby Ax. on Tue Feb 09, 2010 10:42 pm

Thanks for your reply!

Result:

rotalt 12
drwxr-xr-x 73 axax axax 4096 2010-02-09 20:52 axax
drwxr-xr-x 37 guest guest 4096 2010-02-10 03:42 guest
drwxr-xr-x 35 sanna sanna 4096 2010-02-09 16:15 sanna
Ax.
Level 1
Level 1
 
Posts: 33
Joined: Thu Aug 28, 2008 3:06 pm

Re: Users can browse eachothers home folders?

Postby DrHu on Wed Feb 10, 2010 4:06 am

It easy in the GUI, simply go to your /home/folder name and turn off permissions for other and world groups to none (no access)
--now other users will not be able to enter/read your directory contents, I can't remember if they will be able to see the directory (folder) name for that user, I am thinking NOT!

For Linux Mint 7 main edition (Gnome desktop)
Mint menu>Home Folder>Go up one level (your user name)>Properties>Permissions>Change Group, Other to None
User avatar
DrHu
Level 16
Level 16
 
Posts: 6900
Joined: Wed Jun 17, 2009 8:20 pm

Re: Users can browse eachothers home folders?

Postby Ax. on Wed Feb 10, 2010 6:41 am

Thanks! I got it sorted out. :)

Is there any way to make the account I call "guest" only have access to his own homefolder? So he can't browse the filesystem?
Ax.
Level 1
Level 1
 
Posts: 33
Joined: Thu Aug 28, 2008 3:06 pm

Re: Users can browse eachothers home folders?

Postby SiKing on Wed Feb 10, 2010 1:56 pm

DrHu wrote:It easy in the GUI, simply go to your /home/folder name and turn off permissions for other and world groups to none (no access)

I have often wondered why this is not done by default when creating a new user.

DrHu wrote:--now other users will not be able to enter/read your directory contents, I can't remember if they will be able to see the directory (folder) name for that user, I am thinking NOT!

Yes they will. This based on the r/w permission of the /home (parent) folder itself.
SiKing
Level 5
Level 5
 
Posts: 576
Joined: Mon Sep 29, 2008 10:57 pm
Location: Las Vegas


Return to Newbie Questions

Who is online

Users browsing this forum: all41, mach50, ReadToEat and 38 guests