[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FS-mounting as user woes



Robert Waldner wrote:

Hi!

On my 'orkstation at home, I have the following in /etc/fstab:
   /dev/hdd1 /home/huge auto user,noauto 0 0
   /dev/sdb1 /mnt/reader vfat defaults,user,noauto 0 0
and can therefore mount it as user:
   :) waldner@fsck->~ $ ls -l /home/ | grep huge
   drwxr-xr-x    2 root     root         4096 2004-07-22 09:38 huge
   :) waldner@fsck->~ $ mount /home/huge/
   :) waldner@fsck->~ $ ls -l /home/ | grep huge
   drwxr--r--   15 waldner  waldner      8192 1970-01-01 01:00 huge

Perfect (works for sdb1, too).

But on my lapdog, the same doesn't work:
   /dev/sda1 /mnt/stick vfat defaults,user,noauto 0 0
I can mount it as user, but the directory afterwards belongs to root, which isn't exactly helpful for reading the contents as user:
   :) waldner@beren->/mnt $ ls -l | grep stick
   drwxrwxr-x    2 root     root         1024 Mar 29 12:39 stick
   :) waldner@beren->/mnt $ mount /mnt/stick/
   :) waldner@beren->/mnt $ ls -l | grep stick
   drwxr--r--    4 root     root        16384 Jan  1  1970 stick

Any idea what could be the problem here (other than the one between keyboard and chair)? Both boxen run well-intermixed testing/unstable, nearly the same kernel (home: 2.4.26-1-k7, lapdog: 2.4.26-1-686) and the same mount (2.12-7).

man mount
man fstab

With FAT there's an option to specify who owns the files, and what {U,G}IDs apply.


--

Cheers
John

-- spambait
1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/



Reply to: