Filesystem Ownership

Laurent Asorne laurent.asorne at gmx.lu
Mon Jul 9 08:53:58 UTC 2007


On Thursday, 05 July 2007 14:56:44 Greg Booth wrote:
> Looks like it would end up being
>
> SUBSYSTEM=="usb_device",                GROUP="laurent", MODE="0664"
>
> to switch it to user and group to your own.
>
> Greg Booth
>
> On 7/5/07, Laurent Asorne <laurent.asorne at gmx.lu> wrote:
> > On Wednesday, 04 July 2007 03:45:03 D. Michael McIntyre wrote:
> > > On Tuesday 03 July 2007, Laurent Asorne wrote:
> > > > Hi! I'd like to change the ownership of my Sony Microvault 1GB USB
> > > > Memory Stick, but everytime I try with
> > > > # sudo chown laurent:users /media/MICROVAULT/
> > >
> > > I assume the stick is formatted with FAT32, and you're using the VFAT
> > > filesystem on it.  VFAT doesn't have proper permissions, so you have to
> > > set any permissions at mount time, with mount parameters.
> > >
> > > Lets' see...  I plugged a memory card into my computer, and wound up
> > > with:
> > >
> > >
> > > /dev/sdb1 on /media/disk type vfat
> > > (rw,noexec,nosuid,nodev,noatime,uid=1000,utf8,shortname=lower)
> > >
> > > This happened by magic.  I'm not sure what is responsible for mounting
> > > it with these specific parameters, but I think it's udev.
> > >
> > > Looks like this is set up here:
> > >
> > > /etc/udev/rules.d/40-permissions.rules
> > >
> > > But if you change this at the system level, it will affect any card you
> > > mount. I don't think there is any off the shelf way to have just one
> > > particular removable USB storage device come up with different
> > > permissions from all the rest of them automatically.
> > >
> > > You could try to cut something into the udev system to do your custom
> > > job. I did that with hotplug once.  However, the more sensible thing in
> > > your case is probably for you to mount the device by hand, with the
> > > parameters of your choosing.  Something like...
> > >
> > > Well, no, I'm afraid I'm just too tired to dig through the manpage and
> > > try to come up with the syntax for you.
> > > --
> > > D. Michael McIntyre
> >
> > Thanx. I looked up  /etc/udev/rules.d/40-permissions.rules but could not
> > directly know which change to make (man-page is descriptive but not very
> > explicit...). I'll be googling around these days to find something more
> > useful on the net. but thanx fou help anyway!
> >
> > Laurent Asorne
> > --
> > This night methinks is but the daylight sick.
> >                 -- William Shakespeare, "The Merchant of Venice"
> >
> > --
> > kubuntu-users mailing list
> > kubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/kubuntu-users

Thanks for your suggestion. I didn't have the time to try it out, but I will 
do so soon. I'll tell you if it worked out then!

Laurent Asorne

-- 
You have no real enemies.




More information about the kubuntu-users mailing list