From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Prgfp-00062x-RK for garchives@archives.gentoo.org; Tue, 22 Feb 2011 01:04:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F4EBE0540 for ; Tue, 22 Feb 2011 01:04:17 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 148EC1C0B6 for ; Tue, 22 Feb 2011 00:11:18 +0000 (UTC) Received: from digimed.co.uk (grunthos.digimed.co.uk [192.168.1.4]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.digimed.co.uk (Postfix) with ESMTPSA id 20D2228AC96 for ; Tue, 22 Feb 2011 00:11:17 +0000 (GMT) Date: Tue, 22 Feb 2011 00:11:11 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] pmount question Message-ID: <20110222001111.56c63e95@digimed.co.uk> In-Reply-To: <20110221185838.42ab54ce@osage.osagesoftware.com> References: <20110221185838.42ab54ce@osage.osagesoftware.com> Organization: Digital Media Production X-Mailer: Claws Mail 3.7.8cvs57 (GTK+ 2.22.1; i686-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/0sn4t.Wkn8pakMeCOwJHdiV"; protocol="application/pgp-signature" X-Archives-Salt: X-Archives-Hash: d84b5d4f7fc3a5f30d3a2cb317c3c467 --Sig_/0sn4t.Wkn8pakMeCOwJHdiV Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 21 Feb 2011 18:58:38 -0500, David Relson wrote: > I've also modified /etc/udev/rules.d/10-local.rules to use "pmount > device label" rather than "mount -a". This is mounting flash drives > in /media as desired: mount -a was always a bad idea, because it could potentially affect drives other than the one the rule was intended for. What would happen if you had unmounted a filesystem to run fsck on it and you plugged in your USB drive? >=20 > root@osage media # ls -l > total 32 > drwx------ 19 root plugdev 16384 Dec 31 1969 PNY > drwx------ 3 root plugdev 16384 Dec 31 1969 SD_2G >=20 > However (as can be seen above) the permissions are 700, which > makes the drives unusable by members of the plugdev group. >=20 > Alternatively, I can use "pmount -u 007 device label" to provide full > access to the plugdev group. This seems awkward and inelegant. >=20 > What's the right way to use pmount and set permissions? pmount is supposed to be run as a user and it mounts the filesystem owned by the user running it. If you only have a single user, you could call pmount with su. If you have multiple users, you should be letting a desktop tool handle the mounting anyway. --=20 Neil Bothwick We all know what comes after 'X', said Tom, wisely. --Sig_/0sn4t.Wkn8pakMeCOwJHdiV Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk1i/yMACgkQum4al0N1GQMUcwCcCmFSI+p04E1JeygidZY0oKOA tJwAoKLikWo9smRQbNR3+lg7jdHgEUA/ =15SE -----END PGP SIGNATURE----- --Sig_/0sn4t.Wkn8pakMeCOwJHdiV--