Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-18-2006, 10:57 AM
|
#1
|
LQ Newbie
Registered: Mar 2006
Posts: 3
Rep:
|
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:
|
|
|
09-25-2006, 04:57 PM
|
#2
|
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Rep:
|
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 05:01 PM.
|
|
|
All times are GMT -5. The time now is 06:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|