Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Other user can see my home directory [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SirGrant
n00b
n00b


Joined: 25 Jul 2008
Posts: 27

PostPosted: Wed Jul 30, 2008 11:44 pm    Post subject: Other user can see my home directory [Solved] Reply with quote

Hi, my roommate and I have this agreement. We both created users on each other's computers. This is for like an emergency like if one of our computers crashes we can log onto the others if we need to to in case of something like we need to print out an assignment for a class or need to go on the internet to look up the solution to the crashing problem.

My issue is that I created a user account for him on my gentoo box. The problem is that he can see my home directory. Basically I want his user to be isolated and have his own home directory where he can do stuff but I don't want him to be able to look at my stuff at all. The reason I want this is because while I trust him to not snoop in my files I'd just rather still remove that temptation. I mean I'm not super worried, he is a windows guys and knows nothing about GNU/Linux so I don't even think he understands basic *nix file structures so I'm sure he doesn't even know what a home directory is. Still I'd prefer if mine wasn't visible. Basically I want him to be able to log in and use programs like firefox, openoffice, CUPS and stuff but if he looks around not see my home directory and files. How would I go about setting this sort of thing up?


Last edited by SirGrant on Thu Jul 31, 2008 12:20 am; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Thu Jul 31, 2008 12:04 am    Post subject: Reply with quote

This would do the trick, as root;
Code:
chmod go-rwx /home/*


However, your home directory should have been created with the right permissions in the first place, and the above could have unintended side effects, so could you post the output of `ls -l /home` before you do anything?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
SirGrant
n00b
n00b


Joined: 25 Jul 2008
Posts: 27

PostPosted: Thu Jul 31, 2008 12:12 am    Post subject: Reply with quote

total 8
drwxr-xr-x 36 sirgrant sirgrant 4096 Jul 30 16:39 sirgrant
drwxr-xr-x 17 thio thio 4096 Jul 28 05:10 thio

sirgrant is my home directory
thio is my roommates
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Thu Jul 31, 2008 12:15 am    Post subject: Reply with quote

SirGrant wrote:
total 8
drwxr-xr-x 36 sirgrant sirgrant 4096 Jul 30 16:39 sirgrant
drwxr-xr-x 17 thio thio 4096 Jul 28 05:10 thio

sirgrant is my home directory
thio is my roommates
Okay then, `chmod o-rwx /home/*` would do just fine.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
SirGrant
n00b
n00b


Joined: 25 Jul 2008
Posts: 27

PostPosted: Thu Jul 31, 2008 12:19 am    Post subject: Reply with quote

Hey thanks a lot that worked :). I'm off to study the man pages to make sure I totally understand what I was doing (I skimmed them before I did it). Appreciate the help. I've never been strong on understanding file permissions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum