LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-01-2005, 04:06 AM   #1
habala
Member
 
Registered: Dec 2004
Posts: 61

Rep: Reputation: 15
Foolproof hiding of folders?


I use a seperate partition (hda2) to store all my files, because I'm dubious about this /home thing. Anyway, I've got four regular folders, and a "private" folder.


Is there some way I can use bash to hide the private folder-- hide it from bash, konqueror, everything-- until I enter a specific command?

I know putting a . before the name makes it hidden, but ls -a or View Hidden easily shows it. I want something like a password-protected file-hider-- like "display private joeyjoejoe".

Is this possible? Is this insane? Is this already built in and so basic I'm embarassing myself?

Thanks for your help.
 
Old 01-01-2005, 04:38 AM   #2
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
AFAIK, there's no way of hiding anything from the root user. If you just need to make it inaccessible by non-root users, then you'd do something like `chmod -R 0600 /path/to/directory`.

You could store these fileson a CD-RW or you could encrypt the entire partition. That's beyond me though.

Last edited by mugstar; 01-01-2005 at 04:43 AM.
 
Old 01-01-2005, 05:02 AM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Your home directory should not be navigable by other users except root. That is to say they cant see beyond the existance of /home/your username and you can't see into /home/their username.
You could change the permissions of a file/folder you own to be non-readable and non-executable to even the owner (you), but then you still have permission to change the permissions back. This may be what you want to stop programs diving into the folder.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Folders from restricted users nowhere.elysium Linux - Security 3 11-17-2005 02:46 PM
Cleanest and foolproof way to append query string to URLs (PHP) vharishankar Programming 4 07-11-2005 11:38 AM
Hiding Folders in Linux superbejo Linux - Software 9 06-09-2004 08:50 AM
hiding icons and folders dark_light Linux - General 2 05-31-2003 05:35 AM
Hiding tmiles Linux - Security 4 08-10-2001 09:17 AM


All times are GMT -5. The time now is 12:31 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