LinuxQuestions.org
Help answer threads with 0 replies.
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 03-08-2011, 06:35 PM   #1
albc123
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
Hide other partition on redhat 5.5 ?


Hello !
i have a pc with multiple operating system : windows 7 (ntfs) , windows XP ( fat32) and redhat 5.5.I want to hide all windows partition on linux (i want to prevent all users including root to see or mount these partition). On other linux i have used in the past this method :

- i create /usr/share/hal/fdi/preprobe/95userpolicy , and put on this folder a file called 10ignore-disks.fdi :
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="block.device" string="/dev/sda1">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sda2">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>

where sda1 and sda2 are windows partition.And these drive are not visible by all users.But on redhat this file doesn't make any effect.

What can i do.there is another method in redhat ?
thank you !
 
Old 03-08-2011, 06:47 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
It may be that redhat 5.5 doesn't use hal anymore. I believe most distros have migrated to udev, so you may need to either create a new rule for udev or move this rule to a different location. Or maybe hal is there and it just needs some syntax tweaking...
 
Old 03-08-2011, 09:00 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Can I just point out that you can't hide anything from root... that's the point of root. He can always:

1. undo anything you do
OR
2. use fdisk instead

PS HAL is in RHEL 5.5 http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.5
 
Old 03-08-2011, 09:54 PM   #4
albc123
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
I have used this method on mandriva 10 and all the partition are hide on all users including root.
 
Old 03-09-2011, 01:31 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
It's only 'hidden' via that tool ie HAL in this case. As I said above, root can undo anything you do; that's why it's called root. He can also use another tool to check eg fdisk.......
 
Old 03-09-2011, 05:42 AM   #6
albc123
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
ok but what can i do in redhat only to hide these partition ?
 
Old 03-09-2011, 08:27 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You can hide them from normal users by not mounting them (/etc/fstab) and ensuring that fdisk (& similar tools) are only runnable by root.
 
Old 03-10-2011, 08:32 PM   #8
albc123
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
i wan't to hide from all users and from root.I have make this on other linux , but i can't make on redhat.I clear entries on /etc/fstab but when i logon as root , on places all the partition are visible.I know that root can do anything , but i just want to hide them from root so when someone logon as root can't see them.
 
  


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
Hide my windows partition from the list? Alnitak Ubuntu 3 09-17-2010 01:38 AM
How to hide Live USB partition from Linux, Windows etc. cho-ben Linux - General 5 05-21-2010 04:54 AM
Data Transfer From Redhat Linux Partition to Fat32 Partition saraturtle Linux - General 20 04-04-2007 06:20 PM
Is it possible to TRULY hide a partition / data? JZL240I-U Linux - General 26 11-03-2005 07:19 AM
How to get rid of or hide Redhat Notification Alert on taskbar? Arodef Fedora 2 04-15-2004 10:03 AM


All times are GMT -5. The time now is 03:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration