public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Eric Martin <freak4uxxx@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] HAL: how to prohibit mounting certain partitions
Date: Sat, 01 Sep 2007 06:51:40 -0400	[thread overview]
Message-ID: <46D9443C.9050002@gmail.com> (raw)
In-Reply-To: <200709010928.02233.michaelkintzios@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mick wrote:
> On Saturday 01 September 2007, Vladimir Rusinov wrote:
>> (I have not get help in native language list :(. And, sorry for my English)
> 
> No worries.  :)
> 
>> I have windows & Linux installed on the same hard disk.
>> In Linux I've set up KDE + hal. It allows users to mount any removable
>> devices, and also windows partition.
>> I don't wanna to disable ntfs in kernel, but I don't want to users be able
>> to mount windows partition (that's a security issue).
>> So, how can I prohibit hal to mount /dev/sda*?
> 
> Try entering the respective partition in /etc/fstab as noauto and mountable 
> only by e.g. root, or a suitable group id.
> 
> Hope this helps.

Also, IIRC NTFS by default mounts 500 root root.  you have to change it
via the mount command to get anything different.

eg.

mount /dev/sda1 /mnt/ntfs -o gid=users,umask=0227

If you'd like R/W acccess to it you need to emerge captive-ntfs,  I did
a search and all I can find is ntfs-3g.  Does anyone know if captive
turned into this?  I did a quick search on the webpage and couldn't find
anything.  Also, you'll need FUSE w/both.

Eric
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG2UQ8aiVxdKlBO58RAtp3AJ416hkmdL3ST+pPxqW7TPLAJjjm4ACcCQoo
iBTgUjMq5qURoHvlqSZIyR8=
=ksFR
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2007-09-01 11:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-01  7:54 [gentoo-user] HAL: how to prohibit mounting certain partitions Vladimir Rusinov
2007-09-01  8:28 ` Mick
2007-09-01 10:51   ` Eric Martin [this message]
2007-09-01 11:02     ` [gentoo-user] " Marc Blumentritt
2007-09-01 11:19     ` [gentoo-user] " Eric Martin
2007-09-03  5:11   ` Vladimir Rusinov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46D9443C.9050002@gmail.com \
    --to=freak4uxxx@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox