LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-14-2007, 07:36 AM   #1
FarmukanX
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Rep: Reputation: 0
How Can I Hide...


Hi, ALL!

How can i close access to /home/user/folder1 for all exept* . (here i set folder's owner as root)
*access allow for (rw) :
1. /home/user/some_prog(root root rwx--x--x)
2.root-у
3./home/user/folder1 must be mounted automaticly after suse start.

and the most interesting: what i must do for deny access to my HDD if someone will connect it to his computer and login as root?
 
Old 05-14-2007, 11:40 AM   #2
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
I'm not really sure if I understand you, but I'll try.

Quote:
How can i close access to /home/user/folder1 for all exept* . (here i set folder's owner as root)
*access allow for (rw) :
That's probably
Code:
# chmod 0600 /home/user/folder1
And make sure that the folder belongs to the user you want to have access to it.
1.-2. Sorry, I don't really understand.
3. Mounting on startup is done by /etc/fstab
try
Code:
$ man fstab
although I don't understand why you should mount a folder.

The remote login thing is probably done by some ssh config file but I'm not really sure about that. And what do you mean by denying access to the hard drive? Is that some other hard drive on that computer or do you want to deny any logins at all?

I'm sorry, I'm probably not really helpful but it would help if you would try to give more details about what exactly are you trying to do.
 
Old 05-14-2007, 01:33 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
hi FarmukanX... in order to provide you with a complete answer to your question, it is vital that we fully understand it first... this isn't happening yet, please clarify your permissions question... are you asking how to make a root-owned program/folder inside a user's home folder??

Quote:
Originally Posted by FarmukanX
and the most interesting: what i must do for deny access to my HDD if someone will connect it to his computer and login as root?
well, they don't really need to be root in order to get access to the data on your drive, they just need to be able to mount it... you can't deny access to the data on the drive, what you can do is encrypt the data, so that it is useless to the person who steals/copies your drive...

Last edited by win32sux; 05-14-2007 at 02:08 PM.
 
Old 05-14-2007, 02:19 PM   #4
FarmukanX
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
try to be more detailed

i need that some "user" run /home/user/some_prog which have rw permissions to /home/user/folder1, but i want to hide entry of /home/user/folder1 from "user" and another condition: "user" can connect my HD to its own PC to view it, i can not control it.

my solution:
1.set root permission to /home/user/folder1 {root root rwx------} (user can't read it).
2.set permissions for /home/user/some_prog as {root root rwx--x--x} (so user can run it)
3.But if user connect my HD to its own PC he can view it. so i think i must encrypt my folder or filesystem. after that user can't view it.

Can i do somethig to automatically decrypt on boot my folder or filesystem with condition: "nobody except me know password"?
Maybe i shall allow this to /home/user/some_prog and it will decrypt /home/user/folder1 before using?
 
Old 05-14-2007, 02:31 PM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
If your security concerns include the possibility of someone physically taking your hard drive and hooking it up to his own computer, then you absolutely need encryption. An encrypted file system is your best option.

I don't know how to configure this stuff manually, but the Debian 4.0 installer has an option to put the entire OS on an encrypted file system. This is the perfect option for people with sensitive data on a laptop (laptops are at the highest risk of physical theft).
 
Old 05-15-2007, 02:56 AM   #6
FarmukanX
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
what do you think about this aproach: I can run commands from a C program just as if they were from the UNIX command.
I can make virtual partition, encrypt it and save my folder on it. I can compile C program which will decrypt it and hide executable file somewhere in /usr/bin/ or somewhere alse. And start it in some script on boot. He can find it not so quickly.

Last edited by FarmukanX; 05-15-2007 at 02:59 AM.
 
Old 05-15-2007, 09:50 AM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I think you should just use an encrypted file system. Why use such a complex system which still leaves an uncrypted copy out there somewhere?

What exactly is the thing you're attempting to secure? You want to secure the data in "folder1", but still provide the user some limited indirect access to the data via a particular program, right?

You'll need to encrypt both "folder1" AND the program. Otherwise, the user can modify the program (by installing the hard drive in his own computer), and leave himself a backdoor the next time you enter the encryption password.

In fact, you'll need to encrypt the ENTIRE operating system. Otherwise, the user can install a keyboard sniffer (by installing the hard drive in his own computer) to get the password the next time you enter the encryption password.

Really, the only comprehensive solution is to encrypt the entire operating system.
 
  


Reply



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
Is it possible to hide my ip ?? megaprog Debian 18 04-24-2016 07:38 AM
Hide X tux06 Debian 7 10-14-2006 12:25 PM
Hide and Go Slack ? Grongle Slackware 4 05-18-2006 07:46 PM
If you were OpenGL, where would you hide? Elomis Linux - Software 6 01-05-2005 12:05 AM
Raw Hide Igman Linux - General 3 11-04-2003 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration