Re: [gentoo-user] USB permission/owner - change not allowed as root

2014-01-01 Thread Neil Bothwick
On Tue, 31 Dec 2013 19:14:36 -0700, Joseph wrote: If I remove the mounting line from fstab they mount with correct permission joseph:users but the mount point is reference as UUID and it makes it hard to reference it in bash scripts. MOUNTPOINT=$(mount | awk '/^\/dev\/sdb1/ {print $3}')

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-31 Thread Alan McKinnon
On 31/12/2013 04:30, waben...@gmail.com wrote: Am Dienstag, 31.12.2013 um 01:38 schrieb Neil Bothwick n...@digimed.co.uk: On Mon, 30 Dec 2013 17:52:56 +0100, waben...@gmail.com wrote: For some reason or another the system doesn't like my fstab entry: /dev/sdb1 /media/stickauto

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-31 Thread Alan McKinnon
On 30/12/2013 19:22, Joseph wrote: On 12/30/13 17:36, Randolph Maaßen wrote: [snip] With the line in fstab: /dev/sdb1 /media/stickautonoauto,rw,users 0 0 Some USB stick are mounted as root:root and I can not change that even as root. When I remove this

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-31 Thread Joseph
On 12/31/13 10:49, Alan McKinnon wrote: On 30/12/2013 19:22, Joseph wrote: On 12/30/13 17:36, Randolph Maaßen wrote: [snip] With the line in fstab: /dev/sdb1 /media/stickautonoauto,rw,users 0 0 Some USB stick are mounted as root:root and I can not change that

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-31 Thread Alan McKinnon
On 31/12/2013 18:06, Joseph wrote: On 12/31/13 10:49, Alan McKinnon wrote: On 30/12/2013 19:22, Joseph wrote: On 12/30/13 17:36, Randolph Maaßen wrote: [snip] With the line in fstab: /dev/sdb1 /media/stickauto noauto,rw,users 0 0 Some USB stick are mounted

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-31 Thread wabenbau
Am Dienstag, 31.12.2013 um 10:31 schrieb Alan McKinnon alan.mckin...@gmail.com: On 31/12/2013 04:30, waben...@gmail.com wrote: Am Dienstag, 31.12.2013 um 01:38 schrieb Neil Bothwick n...@digimed.co.uk: On Mon, 30 Dec 2013 17:52:56 +0100, waben...@gmail.com wrote: For some reason or

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-31 Thread Bruce Hill
On Tue, Dec 31, 2013 at 09:06:38AM -0700, Joseph wrote: Thank you for the hints, here is the output of: tail -f /var/log/messages My line if fstab is: /dev/sdb1 /media/stickautonoauto,rw,user and this USB below file are mounted as root:root (not joseph:users)

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-31 Thread Joseph
On 12/31/13 12:03, Bruce Hill wrote: [snip] The blkid output would have shown this device, it's UUID, and filesystem. At any rate, for my flash drives I want them mounted with perms for rw for user mingdao, so I put something like this in /etc/fstab: baruch ~ # blkid /dev/sdc1 /dev/sdc1:

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread Alan McKinnon
On 30/12/2013 09:51, Edward M wrote: On Sun, 29 Dec 2013 19:42:33 -0700 Joseph syscon...@gmail.com wrote: After recent upgrade when I mount my USB and try as root: chown joseph:users /media/stick/Ancient-Electricity_new.ppt chown: changing ownership of

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread Edward M
On Mon, 30 Dec 2013 10:38:03 +0200 Alan McKinnon alan.mckin...@gmail.com wrote: On 30/12/2013 09:51, Edward M wrote: On Sun, 29 Dec 2013 19:42:33 -0700 Joseph syscon...@gmail.com wrote: After recent upgrade when I mount my USB and try as root: chown joseph:users

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread Joseph
On 12/30/13 10:38, Alan McKinnon wrote: [snip] I too ran the chown command on my USB flash and got the same response as you did: localhost001 media # chown cru:users flash-drive1/ chown: changing ownership of ‘flash-drive1/’: Operation not permitted drwxr-xr-x

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread Randolph Maaßen
2013/12/30 Joseph syscon...@gmail.com: On 12/30/13 10:38, Alan McKinnon wrote: [snip] I too ran the chown command on my USB flash and got the same response as you did: localhost001 media # chown cru:users flash-drive1/ chown: changing ownership of ‘flash-drive1/’:

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread wabenbau
Am Sonntag, 29.12.2013 um 21:12 schrieb Joseph syscon...@gmail.com: For some reason or another the system doesn't like my fstab entry: /dev/sdb1 /media/stickauto noauto,rw,users 0 0 AFAIK the option to permit user mount is user and not users. Could this cause the problem?

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread Joseph
On 12/30/13 17:36, Randolph Maaßen wrote: [snip] With the line in fstab: /dev/sdb1 /media/stickautonoauto,rw,users 0 0 Some USB stick are mounted as root:root and I can not change that even as root. When I remove this like from fstab. The USB stick are mounting

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread Bruce Hill
On Sun, Dec 29, 2013 at 07:42:33PM -0700, Joseph wrote: After recent upgrade when I mount my USB and try as root: chown joseph:users /media/stick/Ancient-Electricity_new.ppt chown: changing ownership of ‘/media/stick/Ancient-Electricity_new.ppt’: Operation not permitted file ownership

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread Neil Bothwick
On Mon, 30 Dec 2013 17:52:56 +0100, waben...@gmail.com wrote: For some reason or another the system doesn't like my fstab entry: /dev/sdb1 /media/stickauto noauto,rw,users 0 0 AFAIK the option to permit user mount is user and not users. Could this cause the problem?

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-30 Thread wabenbau
Am Dienstag, 31.12.2013 um 01:38 schrieb Neil Bothwick n...@digimed.co.uk: On Mon, 30 Dec 2013 17:52:56 +0100, waben...@gmail.com wrote: For some reason or another the system doesn't like my fstab entry: /dev/sdb1 /media/stickauto noauto,rw,users 0 0 AFAIK the

[gentoo-user] USB permission/owner - change not allowed as root

2013-12-29 Thread Joseph
After recent upgrade when I mount my USB and try as root: chown joseph:users /media/stick/Ancient-Electricity_new.ppt chown: changing ownership of ‘/media/stick/Ancient-Electricity_new.ppt’: Operation not permitted file ownership is: -rwxr-xr-x 1 root root 5796864 Mar 6 2013

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-29 Thread Dale
Joseph wrote: After recent upgrade when I mount my USB and try as root: chown joseph:users /media/stick/Ancient-Electricity_new.ppt chown: changing ownership of ‘/media/stick/Ancient-Electricity_new.ppt’: Operation not permitted file ownership is: -rwxr-xr-x 1 root root 5796864 Mar 6

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-29 Thread Joseph
On 12/29/13 21:41, Dale wrote: Joseph wrote: After recent upgrade when I mount my USB and try as root: chown joseph:users /media/stick/Ancient-Electricity_new.ppt chown: changing ownership of ‘/media/stick/Ancient-Electricity_new.ppt’: Operation not permitted file ownership is: -rwxr-xr-x 1

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-29 Thread covici
Joseph syscon...@gmail.com wrote: On 12/29/13 21:41, Dale wrote: Joseph wrote: After recent upgrade when I mount my USB and try as root: chown joseph:users /media/stick/Ancient-Electricity_new.ppt chown: changing ownership of ‘/media/stick/Ancient-Electricity_new.ppt’: Operation not

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-29 Thread Joseph
On 12/29/13 21:41, Dale wrote: Joseph wrote: After recent upgrade when I mount my USB and try as root: chown joseph:users /media/stick/Ancient-Electricity_new.ppt chown: changing ownership of ‘/media/stick/Ancient-Electricity_new.ppt’: Operation not permitted file ownership is: -rwxr-xr-x 1

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-29 Thread Joseph
On 12/29/13 23:05, cov...@ccs.covici.com wrote: [snip] file ownership is: -rwxr-xr-x 1 root root 5796864 Mar 6 2013 Ancient-Electricity_new.ppt Is it mounted Read Only? It's the only thing I can think of. I'm not sure if that would keep it from changing it if it is either. Dale :-)

Re: [gentoo-user] USB permission/owner - change not allowed as root

2013-12-29 Thread Edward M
On Sun, 29 Dec 2013 19:42:33 -0700 Joseph syscon...@gmail.com wrote: After recent upgrade when I mount my USB and try as root: chown joseph:users /media/stick/Ancient-Electricity_new.ppt chown: changing ownership of ‘/media/stick/Ancient-Electricity_new.ppt’: Operation not permitted