Gentoo Archives: gentoo-user

From: Eric Martin <freak4uxxx@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] HAL: how to prohibit mounting certain partitions
Date: Sat, 01 Sep 2007 11:03:17
Message-Id: 46D9443C.9050002@gmail.com
In Reply to: Re: [gentoo-user] HAL: how to prohibit mounting certain partitions by Mick
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Mick wrote:
5 > On Saturday 01 September 2007, Vladimir Rusinov wrote:
6 >> (I have not get help in native language list :(. And, sorry for my English)
7 >
8 > No worries. :)
9 >
10 >> I have windows & Linux installed on the same hard disk.
11 >> In Linux I've set up KDE + hal. It allows users to mount any removable
12 >> devices, and also windows partition.
13 >> I don't wanna to disable ntfs in kernel, but I don't want to users be able
14 >> to mount windows partition (that's a security issue).
15 >> So, how can I prohibit hal to mount /dev/sda*?
16 >
17 > Try entering the respective partition in /etc/fstab as noauto and mountable
18 > only by e.g. root, or a suitable group id.
19 >
20 > Hope this helps.
21
22 Also, IIRC NTFS by default mounts 500 root root. you have to change it
23 via the mount command to get anything different.
24
25 eg.
26
27 mount /dev/sda1 /mnt/ntfs -o gid=users,umask=0227
28
29 If you'd like R/W acccess to it you need to emerge captive-ntfs, I did
30 a search and all I can find is ntfs-3g. Does anyone know if captive
31 turned into this? I did a quick search on the webpage and couldn't find
32 anything. Also, you'll need FUSE w/both.
33
34 Eric
35 -----BEGIN PGP SIGNATURE-----
36 Version: GnuPG v1.4.7 (GNU/Linux)
37 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
38
39 iD8DBQFG2UQ8aiVxdKlBO58RAtp3AJ416hkmdL3ST+pPxqW7TPLAJjjm4ACcCQoo
40 iBTgUjMq5qURoHvlqSZIyR8=
41 =ksFR
42 -----END PGP SIGNATURE-----
43 --
44 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: HAL: how to prohibit mounting certain partitions Marc Blumentritt <marc.blumentritt@×××××.de>
Re: [gentoo-user] HAL: how to prohibit mounting certain partitions Eric Martin <freak4uxxx@×××××.com>