LinuxQuestions.org
Help answer threads with 0 replies.
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 06-21-2015, 02:35 AM   #1
greville
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
Smile blocking access to ntfs drives while surfing under linux


If I boot from a linux usb stick and connect to the internet how can I block access to the ntfs drives on the internal HDD? I do not want my windows drives exposed to the internet. Is my only option to physically disconnect the internal HDD? Thanks for any help with this https://lqo-thequestionsnetw.netdna-...s_lq/icon7.gif
 
Old 06-21-2015, 08:37 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Do you want to prevent yourself from accidentally accessing the NTFS volumes, or malware from messing with them? Remove the NTFS kernel modules from the USB stick. You will find them somewhere under /lib/modules.

This solution is not watertight. Somebody could break into your computer and either use NTFS tools or reinstall the drivers to access the drives. Or simply download the entire drives and analyse them on their computer. Anything you disconnect via software can be reconnected via software. For 100% security, physically disconnect the drives.
 
1 members found this post helpful.
Old 06-21-2015, 10:10 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Simply umount them.
As pointed out, not totally safe, but will suffice to stop casual perusal.
 
1 members found this post helpful.
Old 06-22-2015, 09:10 AM   #4
greville
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you sygOO and berndbausch for your help and advice. My concern is to protect my internal HDD (ntfs partitions) from any harm from the internet i.e installation of any unsolicited s/w (malware, virus etc.) and also unauthorised access ie "breaking in". From your advice I'm thinking that my understanding of the how these undesirable intrusions could be prevented is not all it should be.
I have now learnt that I can get Linux to have the drive partitions unmounted and hidden. I presume that this would prevent any program from knowing of the existence of these partitions, while linux was operating. A windows exe file downloaded, under linux, to say my home directory couldn't run anyway? A linux executable file could run but what changes could it make without first having to provide my admin password or that of root?
In the same vein, how can someone break in to my computer (while linux was running) without having to supply either my password or that of root? Your advice wil be much appreciated.
 
Old 06-23-2015, 12:42 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
To answer your last question first, neither Linux nor Windows computers are immune to breaking in. On both platforms, crackers take advantage of bugs in programs that run under a privileged user. Red Hat and its clones Centos, Scientific Linux and Oracle Linux minimize this by closing all network ports by default and through SELinux, a framework that prevents "owned" programs to cause damage beyond the files that these programs are supposed to access.

Quote:
I presume that this would prevent any program from knowing of the existence of these partitions, while linux was operating
Not really. Once someone has access to your system, a look at /proc/partitions reveals what disks are there. Use a tool like fdisk, which is bound to be on your system, to find out what partition types there are. Then use NTFS utilities on your USB stick or install them. Access the NTFS partition and install your virus.

While it's an unlikely scenario (or perhaps not that unlikely? I am certainly not an expert in these matters), it's not at all impossible.
 
1 members found this post helpful.
Old 06-23-2015, 06:04 AM   #6
greville
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
So in practical terms, for maximum protection of the contents on my HDD I should quarantine the drive by physically disconnecting it. Thanks for this specific solution and thank you also for helping me see the need for me to develop a much better understanding of how a computer can be controlled /made to do things. I need to do a lot more reading/research.
Cheers,
 
Old 06-23-2015, 03:37 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i have yet to see a OS that dose not automount ntfs ( ntfs-3g) partitions as read ONLY ( except for root )

but to stop the auto mounting
add a line in fstab
or
write a udev rule for the partitions

there really is NO need to open the computer and unplug the ntfs formatted drive ( very bad idea)

now
if it is on a REMOVABLE drive , then just put it on the shelf with the rest
 
Old 06-23-2015, 05:29 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
You could create a real install on a usb where you could remove your user from being able to mount ntfs.

I'd not sure that most distro's mount all drives at boot but maybe I'll check that in a few. At one time it was very difficult to access ntfs, then we got read support. Took a while to get read/write support but you used to have to manually tell the mount to mount it as ntfs-3g.
 
Old 06-23-2015, 11:38 PM   #9
greville
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have learnt that adding an appropriate line in fstab for each ntfs drive, each drive can be hidden and not automounted at boot up. So being unmounted and hidden I would have thought that any one logged on, but not as root, could not access the ntfs drives. If I configure linux to have no users except me and root (guest disabled) with robust passwords, then I would be the only one who knows the passwords and so the only one able to logon and use my linux system. However, going on Berndbausch's reply it's possible for a hacker to gain access to my system by somehow bypassing the password security, as a "privileged user". I need to do more reading to learn more about what alternative access routes there are to my system other than the normal logon procedure. I suspect this will take me to learning about open communication ports as "backdoors".
 
  


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
Urgent: Failing NTFS HD - Will ddrescue Read & Write To Windows NTFS Drives? zipgunner Linux - Newbie 15 03-08-2011 06:29 AM
Why can't I set user read access for mounted ntfs drives? sureshot324 Linux - Software 6 01-08-2006 10:42 PM
How to access NTFS/FAT drives from Fedora Core 2 lapierrem Linux - Newbie 4 06-16-2004 09:54 AM
Captive NTFS -- full r/w ntfs access for Linux spurious Linux - Software 6 01-09-2004 12:29 AM
Access Mail But No Surfing The Net crenguta Linux - Networking 1 02-05-2002 11:15 PM

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

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