Gentoo Archives: gentoo-user

From: Philip Webb <purslow@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB permissions glitch
Date: Mon, 01 Dec 2008 15:38:14
Message-Id: 20081201153809.GC4572@ca.inter.net
In Reply to: Re: [gentoo-user] USB permissions glitch by Neil Bothwick
1 081201 Neil Bothwick wrote:
2 > On Mon, 1 Dec 2008 07:10:00 -0500, Philip Webb wrote:
3 >> in /etc/fstab I have :
4 >> '/dev/sdb1 /mnt/usb auto noauto,user,umask=000 0 0'
5 >> I reformat USB sticks to a Linux fs, as 'fat' seems to reduce capacity.
6 > You didn't mention that before: it was reasonable to assume
7 > that you were using FAT because you have a umask option in fstab,
8 > which also does not apply to ext2.
9
10 Thanks(1) : I hadn't noticed that. I have 1 USB stick with 'fat',
11 in case I want to exchange files with a M$ machine (more below),
12 hence the 'auto' entry in the filesystem column.
13
14 > Are you setting the permissions of the mount point
15 > with the device mounted or unmounted ?
16 > When the device is mounted, the mount point assumes
17 > the ownership & permissions of the root of the device's filesystem.
18 > You need to chmod/chown it with the stick mounted.
19
20 Thanks(2) : indeed ! -- I reformatted 2 sticks to 'ext2' recently
21 & that seems to be what undid the previous behaviour: having done 'chmod'
22 with each stick mounted, the permissions persist when I remount them.
23 However, I can't similarly change the permission for the 'fat' stick,
24 presumably because M$ formats don't understand Linux permissions.
25
26 I will make appropriate notes ... (smile)
27
28 --
29 ========================,,============================================
30 SUPPORT ___________//___, Philip Webb
31 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
32 TRANSIT `-O----------O---' purslowatchassdotutorontodotca