Re: [Fwd: Re: udev+amd64] - Mounting USB Devices

From: <jgribbin@alaska.net>
Date: Sat Jan 28 2006 - 15:29:14 AKST

I missed this little discussion last night.
The problem (feature) is probably in the hotpluging setup. Suse, probably others, is set up so that when when you plug in a usb drive, it is automatically owned by root. This is irregardless of udev.permissions.

USB storage is considered a security risk and they want you to su to root and change the permissions each time. Suse/Novell even has a how-to about this on their web site.

I got around this by changing the line in my fstab from:
usbfs /proc/bus/usb usbfs noauto 0 0

I changed to look like this:

usbfs /proc/bus/usb usbfs noauto,gid=100,umask=002 0 0

This causes usb drives to be mounted root:users with permissions of 775.

I don't know that anyone beside suse is using the usbfs setup. You may not have that part, but the rest of the line should work.

Jim Gribbin

----- Original Message -----
From: Fielder George Dowding <fgdowding@iceworm-enterprises.net>
Date: Saturday, January 28, 2006 1:59 pm
Subject: [Fwd: Re: udev+amd64] - Mounting USB Devices

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I dimly remember a discussion regarding permissions and USB
> devices. I
> have had problems writing to USB mass storage devices (external hard
> drives). Last night there was a similar question, but I was deeply
> engaged in my own efforts to get ndiswrapper and the broadcom windows
> driver to cooperate (Success!). So, I thought this may have some
> relevance if your system does this udev thing. fgd.
>
> - -------- Original Message --------
> Subject: [SPAM] Re: udev+amd64
> Resent-Date: Fri, 27 Jan 2006 16:06:23 -0600 (CST)
> Resent-From: debian-amd64@lists.debian.org
> Date: Fri, 27 Jan 2006 14:06:20 -0800
> From: Andrew Sharp <andy@netfall.com>
> To: Gudjon I. Gudjonsson <gudjon@mc2.chalmers.se>
> CC: Debian-AMD64-ML <debian-amd64@lists.debian.org>
> References: <200601271705.17677.gudjon@mc2.chalmers.se>
>
> On Fri, Jan 27, 2006 at 05:05:17PM +0100, Gudjon I. Gudjonsson wrote:
> > Hi
> > I am trying to run a program using USB hardware. I added the
> following
> > lines to /etc/udev/permissions.rules:
> > SUBSYSTEM=="usb_device", GROUP="plugdev", \
> > SYSFS{idVendor}=="0abf", SYSFS{idProduct}=="3370"
> > Since then I have upgraded udev to 0.82-1 and reastarted my
> computer but the
> > program only works when run as root. A normal user does not have
> the
> > permissions to write to the device ( I am in the plugdev group ).
> > I do run the same program on an i386 machine and there
> everything works
> > when run as a normal user with the same lines in
> /etc/udev/permissions.rules.
> I always have to re-do my permissions.rules file after an upgrade.
> Check that your mods are still present. Aside from that
> possibility, I
> have no idea.
>
> Cheers,
>
> a
>
>
> - --
> To UNSUBSCRIBE, email to debian-amd64-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
>
> - --
> Fielder George Dowding, Chief Iceworm .^. Debian/GNU Linux
> dba Iceworm Enterprises, Anchorage, Alaska /v\ "etch" Testing
> Since 1976 - Over 25 Years of Service. /( )\ User Number 269482
> ^^-^^ "irad" 301256
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFD2/dZ2kl99FX0AIkRAhq8AKCL6wkeMCSK+Ki4S0VRsjWdmly7SQCfXZzw
> OiTXkjgxJIn1qFDP0H4r0V8=
> =ebQU
> -----END PGP SIGNATURE-----
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
>

-- Binary/unsupported file stripped by Ecartis --
-- Type: text/x-vcard
-- File: jgribbin@alaska.net.vcf
-- Desc: Card for <jgribbin@alaska.net>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sat Jan 28 15:29:41 2006

This archive was generated by hypermail 2.1.8 : Sat Jan 28 2006 - 15:29:41 AKST