LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-21-2005, 05:04 PM   #1
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
permissions difference between /home/..../folder and /root/folder


I have a folder that I want to use for my user account though I want it to be somewhere where it's not easily seen or opened through rox if I forget to lock my screen when I'm away.

Now I had this working properly in /root. I had a folder in there that was owned by my user account. I could only get into if I got the address right at once (so no cd and ls in /root which had access denied). But my / isn't very big so I'm kind of running out of space if I don't regularly clean apt so I wanted it to move to my /home which is on a different partition. I just created /home/user owned by root and made a folder in there which was owned by my user again. Though now I can't get into it from my user account. Are there different rules in /home or is there something I'm missing in the permissions?
 
Old 07-21-2005, 05:13 PM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
I would expect /home to have permissions drwxr-xr-x and be owned by root - so if you've created a directory beneath that it will have inherited its permissions from /home. Use chown and chgrp to change the owner and group, and if necessary chmod to adjust the permissions.

Before you do this though - an observation. No matter where you put your home directory, someone will always be able to find it by issuing the command

Code:
cd ~user
or while logged in as you:

Code:
cd
So instead, why not look at getting Gnome, KDE or whichever window manager you use to automatically lock after a set period of inactivity?
 
Old 07-21-2005, 05:17 PM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Yes I know that you can find my home directory like that. That was my main problem in keeping people out as it's simply run rox and then they can see hidden files as well. So it's just a single folder which I don't want in my /home

Going to try now if those permissions work
 
Old 07-21-2005, 05:23 PM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Thanks it works. Turns out to be that other and group need x in the list. This made it work: drwx--x--x root root
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't allow partion permissions for a vfat partition, mounted as my home folder DrD Linux - General 19 07-26-2006 12:26 PM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
accidentally changed permissions on home folder Cinematography Linux - General 7 05-15-2005 04:32 AM
losing permissions on /home folder johnnymo Linux - Software 1 01-25-2005 09:59 PM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 06:44 AM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration