On Sun, 2011-06-19 at 11:22 +0100, Ralph Corderoy wrote: > Hi Peter, > > > > > here is fstab: > > > > > > > > UUID=21FC-A114 /media/TV vfat defaults 0 0 > > > > /dev/sdb5 on /media/TV type vfat (rw) > > Oh, it's vfat. The penny didn't drop initially. vfat has no concept of > users and groups so by default the filesystem in the kernel takes on the > user and group ID of the process that mounted it. By using /etc/fstab > and having it mounted at boot that's root and chown(1), etc., won't > work; the filesystem can't store the change. > > You can add options after the `defaults' to tinker with those defaults. > umask is one, see mount(8), but I'd suggest > > UUID=21FC-A114 /media/TV vfat defaults,uid=peter,gid=peter 0 0 > > assuming that's your user name. A > > sudo umount /media/TV > sudo mount /media/TV > > afterwards should show the improvement. > > Cheers, Ralph.
Brilliant. Thanks, Ralph That's not the sort of thing that I picked up from reading the man pages, or anywhere else. Peter -- Next meeting: TBD, ???day 2011-07-?? 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue

