Gentoo Archives: gentoo-user

From: Edward M <edwardunix@××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB permission/owner - change not allowed as root
Date: Mon, 30 Dec 2013 09:41:49
Message-Id: BLU0-SMTP7149036E97D4B9B31C6031A8CE0@phx.gbl
In Reply to: Re: [gentoo-user] USB permission/owner - change not allowed as root by Alan McKinnon
1 On Mon, 30 Dec 2013 10:38:03 +0200
2 Alan McKinnon <alan.mckinnon@×××××.com> wrote:
3
4 > On 30/12/2013 09:51, Edward M wrote:
5 > > On Sun, 29 Dec 2013 19:42:33 -0700
6 > > Joseph <syscon780@×××××.com> wrote:
7 > >
8 > >> After recent upgrade when I mount my USB and try as root:
9 > >>
10 > >> chown joseph:users /media/stick/Ancient-Electricity_new.ppt
11 > >> chown: changing ownership of
12 > >> ‘/media/stick/Ancient-Electricity_new.ppt’: Operation not permitted
13 > >>
14 > >> file ownership is:
15 > >> -rwxr-xr-x 1 root root 5796864 Mar 6 2013
16 > >> Ancient-Electricity_new.ppt
17 > >>
18 > >
19 > >
20 > > I too ran the chown command on my USB flash and got the same
21 > > response as you did:
22 > >
23 > > localhost001 media # chown cru:users flash-drive1/
24 > > chown: changing ownership of ‘flash-drive1/’: Operation
25 > > not permitted
26 > >
27 > > drwxr-xr-x 7 root root 16384 Dec 31 1969 flash-drive1
28 > >
29 > > Don't know what to tell you. interesting....my says Dec 31 1969.
30 >
31 >
32 >
33 > Read the man page for mount, section vfat.
34 >
35 >
36 > You can't change the owner as FAT doesn't have a concept of owner, so
37 > it's simulated at mount time. You can't change it at runtime.
38 >
39 > To change it you have to umount the device and remount it using the
40 > appropriate option, all in the man page
41 >
42 >
43
44 Thank you for the explanation. I appreciate it a lot. I will
45 read the man page for mount and experiment a little.