* [gentoo-user] chown - not permited
@ 2014-06-10 18:37 Joseph
2014-06-10 18:50 ` the
0 siblings, 1 reply; 11+ messages in thread
From: Joseph @ 2014-06-10 18:37 UTC (permalink / raw
To: gentoo-user
I mount USB stick form camera and I can not change ownership (I'm login as root)
drwxr-xr-x 9 root root 32768 Nov 18 2013 DCIM
-rwxr-xr-x 1 root root 4 Nov 21 2013 _disk_id.pod
drwxr-xr-x 2 root root 32768 Aug 14 2013 LOST.DIR
I can read and write another USB stick but others I can not. How to control it?
--
Joseph
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-10 18:37 [gentoo-user] chown - not permited Joseph
@ 2014-06-10 18:50 ` the
2014-06-10 19:33 ` Joseph
0 siblings, 1 reply; 11+ messages in thread
From: the @ 2014-06-10 18:50 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 06/10/14 22:37, Joseph wrote:
> I mount USB stick form camera and I can not change ownership (I'm
> login as root)
>
> drwxr-xr-x 9 root root 32768 Nov 18 2013 DCIM -rwxr-xr-x 1 root
> root 4 Nov 21 2013 _disk_id.pod drwxr-xr-x 2 root root 32768
> Aug 14 2013 LOST.DIR
>
> I can read and write another USB stick but others I can not. How
> to control it?
>
What filesystem does it contain and what mount options are you using?
Depending on the filesystem it can be possible to mount with
user/group permissions.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBCAAGBQJTl1OEAAoJEK64IL1uI2hat9IH/Rzqea0KLW1x8a93yyrhUmmC
De97fC3abcl5y+Fw06tqYibSgAfsLi+coiy9rBHIweMI9NP249wD1YYPD0ta4Ley
iQez1yA8pDpbeZD5tJHM09o8zVxVHxMMCCdTJdCXu6XePgodv469FwTJMIkxzFA+
SBQ0Z7iduU4dNM68+elwgQrJd30zR/YzPYFRYKjw5fRv6v/ooF41psdtq3uIkBJh
RiVu81lJaxEGGtVFdv3GOhvNvoECFi7QRuF5rYbe7vaiyCCIw6N/bG3UY4tVoqXa
9dy0K9GmsNz6mHYLUpxh7XjhEfk+G/CQ+AIpiO5PEbO1nnN8Pcl6RnzeCKDRDqs=
=StNj
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-10 18:50 ` the
@ 2014-06-10 19:33 ` Joseph
2014-06-10 19:38 ` Alan McKinnon
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Joseph @ 2014-06-10 19:33 UTC (permalink / raw
To: gentoo-user
On 06/10/14 22:50, the wrote:
>On 06/10/14 22:37, Joseph wrote:
>> I mount USB stick form camera and I can not change ownership (I'm
>> login as root)
>>
>> drwxr-xr-x 9 root root 32768 Nov 18 2013 DCIM -rwxr-xr-x 1 root
>> root 4 Nov 21 2013 _disk_id.pod drwxr-xr-x 2 root root 32768
>> Aug 14 2013 LOST.DIR
>>
>> I can read and write another USB stick but others I can not. How
>> to control it?
>>
>What filesystem does it contain and what mount options are you using?
>Depending on the filesystem it can be possible to mount with
>user/group permissions.
One USB stick was ext2 the other was dos file system. I have problem with dos.
I have commentd out in fstab:
/dev/sdb1 /media/stick auto noauto,rw,user 0 0
and let udisks mange it. It works.
Except that now I have ugly long names, for ext2 I get:
/run/media/joseph/2f5fc53e-4f4c-4e74-b9c4-fca316b47fea
for dos I get:
/run/media/joseph/3136-3934
with fstab entry they all were mounted under:
/media/stick
--
Joseph
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-10 19:33 ` Joseph
@ 2014-06-10 19:38 ` Alan McKinnon
2014-06-10 20:14 ` Neil Bothwick
2014-06-11 9:33 ` J. Roeleveld
2 siblings, 0 replies; 11+ messages in thread
From: Alan McKinnon @ 2014-06-10 19:38 UTC (permalink / raw
To: gentoo-user
On 10/06/2014 21:33, Joseph wrote:
> On 06/10/14 22:50, the wrote:
>> On 06/10/14 22:37, Joseph wrote:
>>> I mount USB stick form camera and I can not change ownership (I'm
>>> login as root)
>>>
>>> drwxr-xr-x 9 root root 32768 Nov 18 2013 DCIM -rwxr-xr-x 1 root
>>> root 4 Nov 21 2013 _disk_id.pod drwxr-xr-x 2 root root 32768
>>> Aug 14 2013 LOST.DIR
>>>
>>> I can read and write another USB stick but others I can not. How
>>> to control it?
>>>
>> What filesystem does it contain and what mount options are you using?
>> Depending on the filesystem it can be possible to mount with
>> user/group permissions.
>
> One USB stick was ext2 the other was dos file system. I have problem
> with dos.
> I have commentd out in fstab:
> /dev/sdb1 /media/stick auto noauto,rw,user 0 0
>
> and let udisks mange it. It works.
> Except that now I have ugly long names, for ext2 I get:
> /run/media/joseph/2f5fc53e-4f4c-4e74-b9c4-fca316b47fea
>
> for dos I get:
> /run/media/joseph/3136-3934
>
> with fstab entry they all were mounted under: /media/stick
>
Those long names are filesystem id's and volume labels. You didn't tell
udisks what to call the mount point so it has picked the only thing it
has available - the ID of the filesystem.
fstab is a really bad tool for this, it does not apply the rules to your
USB sticks, it applies them to anything that just happens to get node
/dev/sdb1. Don't assume that will *always* be a portable usb stick,
because it won't.
Read the udisks documentation to find out how to customize naming of
mount points.
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-10 19:33 ` Joseph
2014-06-10 19:38 ` Alan McKinnon
@ 2014-06-10 20:14 ` Neil Bothwick
2014-06-11 9:33 ` J. Roeleveld
2 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2014-06-10 20:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
On Tue, 10 Jun 2014 13:33:28 -0600, Joseph wrote:
> >> I mount USB stick form camera and I can not change ownership (I'm
> >> login as root)
> >What filesystem does it contain and what mount options are you using?
> >Depending on the filesystem it can be possible to mount with
> >user/group permissions.
>
> One USB stick was ext2 the other was dos file system. I have problem
> with dos.
FAT32, the DOS fs, does not have ownerships. You cannot change something
that isn't there.
--
Neil Bothwick
In the begining, there was nothing.
And God said "Let there be light" and there was light.
There was still nothing, but you could see it better.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-10 19:33 ` Joseph
2014-06-10 19:38 ` Alan McKinnon
2014-06-10 20:14 ` Neil Bothwick
@ 2014-06-11 9:33 ` J. Roeleveld
2014-06-11 13:52 ` Joseph
2 siblings, 1 reply; 11+ messages in thread
From: J. Roeleveld @ 2014-06-11 9:33 UTC (permalink / raw
To: gentoo-user
On 10 June 2014 21:33:28 CEST, Joseph <syscon780@gmail.com> wrote:
>On 06/10/14 22:50, the wrote:
>>On 06/10/14 22:37, Joseph wrote:
>>> I mount USB stick form camera and I can not change ownership (I'm
>>> login as root)
>>>
>>> drwxr-xr-x 9 root root 32768 Nov 18 2013 DCIM -rwxr-xr-x 1 root
>>> root 4 Nov 21 2013 _disk_id.pod drwxr-xr-x 2 root root 32768
>>> Aug 14 2013 LOST.DIR
>>>
>>> I can read and write another USB stick but others I can not. How
>>> to control it?
>>>
>>What filesystem does it contain and what mount options are you using?
>>Depending on the filesystem it can be possible to mount with
>>user/group permissions.
>
>One USB stick was ext2 the other was dos file system. I have problem
>with dos.
>I have commentd out in fstab:
>/dev/sdb1 /media/stick auto noauto,rw,user 0 0
>
>and let udisks mange it. It works.
>Except that now I have ugly long names, for ext2 I get:
>/run/media/joseph/2f5fc53e-4f4c-4e74-b9c4-fca316b47fea
>
>for dos I get:
>/run/media/joseph/3136-3934
>
>with fstab entry they all were mounted under:
> /media/stick
Joseph.
If you give the filesystem a Label. Then udisks will use that instead of the UUID string.
--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-11 9:33 ` J. Roeleveld
@ 2014-06-11 13:52 ` Joseph
2014-06-11 14:11 ` Stroller
2014-06-11 14:49 ` Neil Bothwick
0 siblings, 2 replies; 11+ messages in thread
From: Joseph @ 2014-06-11 13:52 UTC (permalink / raw
To: gentoo-user
On 06/11/14 11:33, J. Roeleveld wrote:
>On 10 June 2014 21:33:28 CEST, Joseph <syscon780@gmail.com> wrote:
>>On 06/10/14 22:50, the wrote:
>>>On 06/10/14 22:37, Joseph wrote:
>>>> I mount USB stick form camera and I can not change ownership (I'm
>>>> login as root)
>>>>
>>>> drwxr-xr-x 9 root root 32768 Nov 18 2013 DCIM -rwxr-xr-x 1 root
>>>> root 4 Nov 21 2013 _disk_id.pod drwxr-xr-x 2 root root 32768
>>>> Aug 14 2013 LOST.DIR
>>>>
>>>> I can read and write another USB stick but others I can not. How
>>>> to control it?
>>>>
>>>What filesystem does it contain and what mount options are you using?
>>>Depending on the filesystem it can be possible to mount with
>>>user/group permissions.
>>
>>One USB stick was ext2 the other was dos file system. I have problem
>>with dos.
>>I have commentd out in fstab:
>>/dev/sdb1 /media/stick auto noauto,rw,user 0 0
>>
>>and let udisks mange it. It works.
>>Except that now I have ugly long names, for ext2 I get:
>>/run/media/joseph/2f5fc53e-4f4c-4e74-b9c4-fca316b47fea
>>
>>for dos I get:
>>/run/media/joseph/3136-3934
>>
>>with fstab entry they all were mounted under:
>> /media/stick
>
>Joseph.
>
>If you give the filesystem a Label. Then udisks will use that instead of the UUID string.
>
>--
>Joost
Thanks.
What is the best way to edit USB Label?
--
Joseph
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-11 13:52 ` Joseph
@ 2014-06-11 14:11 ` Stroller
2014-06-11 14:49 ` Neil Bothwick
1 sibling, 0 replies; 11+ messages in thread
From: Stroller @ 2014-06-11 14:11 UTC (permalink / raw
To: gentoo-user
On Wed, 11 June 2014, at 2:52 pm, Joseph <syscon780@gmail.com> wrote:
...
>>
>> If you give the filesystem a Label. Then udisks will use that instead of the UUID string.
>
> Thanks.
> What is the best way to edit USB Label?
$ apropos label
e2label (8) - Change the label on an ext2/ext3/ext4 filesystem
I think you may be able to give DOS filesystems a label at creation time.
Stroller.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-11 13:52 ` Joseph
2014-06-11 14:11 ` Stroller
@ 2014-06-11 14:49 ` Neil Bothwick
2014-06-11 15:31 ` Mike Gilbert
1 sibling, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2014-06-11 14:49 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
On Wed, 11 Jun 2014 07:52:23 -0600, Joseph wrote:
> What is the best way to edit USB Label?
For the DOS filesystem, mlabel, part of sys-fs/mtools.
--
Neil Bothwick
Top Oxymorons Number 19: Passive aggression
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-11 14:49 ` Neil Bothwick
@ 2014-06-11 15:31 ` Mike Gilbert
2014-06-11 19:21 ` Joseph
0 siblings, 1 reply; 11+ messages in thread
From: Mike Gilbert @ 2014-06-11 15:31 UTC (permalink / raw
To: gentoo-user
On Wed, Jun 11, 2014 at 10:49 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Wed, 11 Jun 2014 07:52:23 -0600, Joseph wrote:
>
>> What is the best way to edit USB Label?
>
> For the DOS filesystem, mlabel, part of sys-fs/mtools.
>
Or "fatlabel", from sys-fs/dosfstools.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] chown - not permited
2014-06-11 15:31 ` Mike Gilbert
@ 2014-06-11 19:21 ` Joseph
0 siblings, 0 replies; 11+ messages in thread
From: Joseph @ 2014-06-11 19:21 UTC (permalink / raw
To: gentoo-user
On 06/11/14 11:31, Mike Gilbert wrote:
>On Wed, Jun 11, 2014 at 10:49 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
>> On Wed, 11 Jun 2014 07:52:23 -0600, Joseph wrote:
>>
>>> What is the best way to edit USB Label?
>>
>> For the DOS filesystem, mlabel, part of sys-fs/mtools.
>>
>
>Or "fatlabel", from sys-fs/dosfstools.
Thanks, I've tired mtools "mlable" couldn't get it to work.
"fatlabel" worked perfectly.
--
Joseph
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-06-11 19:21 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-10 18:37 [gentoo-user] chown - not permited Joseph
2014-06-10 18:50 ` the
2014-06-10 19:33 ` Joseph
2014-06-10 19:38 ` Alan McKinnon
2014-06-10 20:14 ` Neil Bothwick
2014-06-11 9:33 ` J. Roeleveld
2014-06-11 13:52 ` Joseph
2014-06-11 14:11 ` Stroller
2014-06-11 14:49 ` Neil Bothwick
2014-06-11 15:31 ` Mike Gilbert
2014-06-11 19:21 ` Joseph
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox