From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.62)
	(envelope-from <gentoo-user+bounces-61187-garchives=archives.gentoo.org@gentoo.org>)
	id 1HQAWk-0002CM-85
	for garchives@archives.gentoo.org; Sat, 10 Mar 2007 22:59:02 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l2AMvnCl017238;
	Sat, 10 Mar 2007 22:57:49 GMT
Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43])
	by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l2AMpvRQ009314
	for <gentoo-user@lists.gentoo.org>; Sat, 10 Mar 2007 22:51:57 GMT
Received: (qmail 28447 invoked from network); 10 Mar 2007 22:51:56 -0000
Received: from unknown (HELO ip-89-103-43-214.karneval.cz) (jcd@seznam.cz@89.103.43.214)
  by cetus.go.seznam.cz with ESMTPA; 10 Mar 2007 22:51:56 -0000
X-Seznam-User: jcd@seznam.cz
From: "paulie.x" <jcd@seznam.cz>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] udev and device ownership
User-Agent: KMail/1.9.5
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Disposition: inline
Date: Sat, 10 Mar 2007 23:51:56 +0100
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <200703102351.56803.jcd@seznam.cz>
X-Archives-Salt: 695f5ce2-e4c8-4099-aa3b-f131ea4cde17
X-Archives-Hash: dd00bf8c11078100286db7108dee29a4

Hi.
For a long time i used this udev rules for my mp3 player and flash disk
10-local.rules:
UBSYSTEMS=="scsi", ATTRS{model}=="LYRA_MPHR2301_EU", OWNER="old_user", 
SYMLINK+="lyra"
SUBSYSTEMS=="scsi", ATTRS{vendor}=="USB 2.0", ATTRS{model}=="Flash Disk", 
OWNER="old_user", SYMLINK+="massive"

In /etc/fstab I had (and still have) following lines:
/dev/massive	/mnt/massive  vfat	owner,noatime,rw,utf8           0 2
/dev/lyra		/mnt/lyra        vfat	owner,noatime,rw,utf8           0 2

So I could write and delete files under mounted folders like regular user.
I created new user and just changed OWNER in 10-local.rules to new username. 
Now when I plug in mp3 player it created device node (example) /dev/sdc and 
rightly I'm owner of this file but I'm not owner of the link so I cannot 
mount it like regular user. And when I mount it like root I cannot manipulate 
with data on the device.
Thx
-- 
gentoo-user@gentoo.org mailing list