LinuxQuestions.org
Register a domain and help support LQ
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 09-18-2006, 09:57 AM   #1
Titan
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Question simple Password protect


Hi all,
Say i have two hard disks

Disk - A
Disk - B

Now lets assume my friend is working on the linux red hat 2.6 with Disk A mounted with lot of our project files.

Disk -B is of mine , say i wanted to copy some data from Disk-A to Disk-B,
the usally procedure is to mount the Disk -B and use it in my system.

Here are my queries.
1. Say i wanted to secure my friend hard disk with a simple password, what is the
procedure?

I am planning to write simple shell script , should i put that in /rc.d that is at boot time, (if the DISK -A is non bootable && bootable scenario) in DISK -A ? .
So that say if i try to mount DISK -A then try to copy the contents into DISK -B It should prompt for enter password else should not provide access to DISK -A.
I know it is not strong method of protecting, but atleast to start with.


2. If the Disk -B is also bootable disk, then on mounting what will happen?

Regards
Titan:
 
Old 09-25-2006, 03:57 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Bear in mind that if you format any disk with ext3 (the default filesystem) then every file has permission information attached to it, which means that any copy operation from A to B automatically involves a permission check by the active operating system to see whether the current user is allowed to access those files on A.

An attacker may circumvent file permissions on a drive by using an OS which is configured to let them copy anything, i.e. by booting from a Live CD. The defence against this is to encrypt the storage so it cannot be read by any software without being decrypted first: I beleive that the current version of Fedora includes LUKS for encrypting drives, although I haven't played with LUKS yet myself.

Last edited by hob; 09-25-2006 at 04:01 PM.
 
  


Reply

Tags
disks, protect


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
Password Protect Folder?? sall Linux - Software 5 07-18-2005 06:58 AM
Password protect a website J_K9 Programming 5 07-07-2005 08:12 AM
Password protect directorys? xconspirisist Linux - Security 3 12-31-2004 08:26 PM
Password protect a directory Stephanie Linux - General 6 03-26-2002 02:58 PM
Password protect souvik Programming 0 05-22-2001 05:28 AM


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