From: Nails on
Trying to get my ipod nano working with gtkpod but get the following error
message:

Could not open "iTunesDB.ext" for reading extended info.
Extended info will not be used.

Pretty sure this is a file permissions issue.

How do I change the file permissions on "iTunesDB.ext" to allow non - root
users read write permissions?
Any help much appreciated!

Paul
From: Ian Rawlings on
On 2007-11-20, Nails <nails(a)hardas.co.uk> wrote:

> How do I change the file permissions on "iTunesDB.ext" to allow non - root
> users read write permissions?

When you mount a FAT partition, because it doesn't support username
attributes on files you need to tell the OS somehow what user to mount
the filesystem as. If you do a "man mount" and search for "uid" I
think, then that'll get you pointed in the right direction. Chances
are that's somewhere around the are your issue lies, trying to get the
filesystem mounted as the user who needs to access the ipod.

--
Blast off and strike the evil Bydo empire!
From: Nails on
On Tue, 20 Nov 2007 11:44:32 +0000, Ian Rawlings wrote:

> On 2007-11-20, Nails <nails(a)hardas.co.uk> wrote:
>
>> How do I change the file permissions on "iTunesDB.ext" to allow non - root
>> users read write permissions?
>
> When you mount a FAT partition, because it doesn't support username
> attributes on files you need to tell the OS somehow what user to mount
> the filesystem as. If you do a "man mount" and search for "uid" I
> think, then that'll get you pointed in the right direction. Chances
> are that's somewhere around the are your issue lies, trying to get the
> filesystem mounted as the user who needs to access the ipod.
>

Many thanks,
I`ll do as you suggest.

Paul
From: Martin Gregorie on
Ian Rawlings wrote:
> On 2007-11-20, Nails <nails(a)hardas.co.uk> wrote:
>
>> How do I change the file permissions on "iTunesDB.ext" to allow non - root
>> users read write permissions?
>
> When you mount a FAT partition, because it doesn't support username
> attributes on files you need to tell the OS somehow what user to mount
> the filesystem as. If you do a "man mount" and search for "uid" I
> think, then that'll get you pointed in the right direction. Chances
> are that's somewhere around the are your issue lies, trying to get the
> filesystem mounted as the user who needs to access the ipod.
>
My copy of FC7 lets me access a USB stick from a normal user if I plug
it in after I'm logged in.

If that doesn't work for you for some reason, have a look at the fstab
and mount manpages. Adding the USB device to fstab and giving it the
"user" property should let any user mount it.

You can customize the mount/unmount operations by scripting them and
setting up a launcher to associate them with a mount/unmount icon is
pretty easy: use xmessage to prompt for mount/unmount etc. xfig makes
drawing a nice icon fairly easy: you can apply the final touches with
The Gimp.

Disclaimer: I haven't tried adding a USB device to fstab, but the
manpages say that should work. I have, however, used xmessage,xfig and
gimp to attach scripts to custom Gnome desktop icons.


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
From: Ian Rawlings on
On 2007-11-20, Martin Gregorie <martin(a)see.sig.for.address> wrote:

> My copy of FC7 lets me access a USB stick from a normal user if I plug
> it in after I'm logged in.

That's usually handled by a specific other programme/subsystem like
HAL under gnome, the chap having the problem (not me) sounds like he's
having issues with the filesystem being mounted with the wrong UID, so
if he has a distro that is supposed to auto-mount inserted devices
then indeed this subsystem is worth looking at rather than mount and
fstab.

--
Blast off and strike the evil Bydo empire!