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 ! |
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...
|
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 |
I have used this method on mandriva 10 and all the partition are hide on all users including root.
|
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.......
|
ok but what can i do in redhat only to hide these partition ?
|
You can hide them from normal users by not mounting them (/etc/fstab) and ensuring that fdisk (& similar tools) are only runnable by root.
|
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.
|
All times are GMT -5. The time now is 06:17 AM. |