Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #174925 > unrolled thread

Re: Coercing sane file permissions -- site specific

Started byrhkramer@gmail.com
First post2016-11-20 16:20 +0100
Last post2016-11-20 17:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  Re: Coercing sane file permissions -- site specific rhkramer@gmail.com - 2016-11-20 16:20 +0100
    Re: Coercing sane file permissions -- site specific <tomas@tuxteam.de> - 2016-11-20 17:10 +0100

#174925 — Re: Coercing sane file permissions -- site specific

Fromrhkramer@gmail.com
Date2016-11-20 16:20 +0100
SubjectRe: Coercing sane file permissions -- site specific
Message-ID<sFC4p-49j-11@gated-at.bofh.it>
Ok, I tried it on Jessie, and it works essentially the same way, with a few 
slight differences:

   * when the USB stick shows up in dolphin, it does not show the mount point, 
instead it says something like "Removable 8MiB device"

   * if I then go to a CLI and look under media, I find the device listed as 
follows, and can access the files:

e.g., ls /media/<myuserid>/84BE-2329.

I don't know where the "84BE-2329" comes from, but it seems to be associated 
with the USB stick, as it is the same on both machines.

On Sunday, November 20, 2016 09:38:21 AM rhkramer@gmail.com wrote:
> I'll answer with something a little bit like Joe's answer.  On my daily
> working machine, which uses Wheezy, I use Dophin as a file manager.
> 
> After I plug in a USB stick, after a few seconds (maybe up to 20??), a new
> entry appears on the left hand list of partitions in Dolphin.  If I click
> on that, the files are displayed in the (current working) pane of Dolphin,
> and I can use the mouse to drag and drop them, open them, or similar.
> 
> The top of that dophin pane shows where the device is mounted, for example,
> /media/84BE-2329/.
> 
> If I then go to a CLI and refer to that mountpoint, I can access the files.
> 
> To anticipate an answer to your potential next question, there is no
> pmount.allow file on this computer.
> 
> I may try the same thing on my future daily working machine, using Jessie
> (and, iiuc, systemd or whatever it is called).  If I try that, I'll let you
> know.
> 
> On Sunday, November 20, 2016 08:58:04 AM Joe wrote:
> > There *is* a generic answer, which requires no fstab entry, but I have
> > to admit that I haven't a clue what it is.
> > 
> > I'm running sid with systemd, with absolutely nothing in /etc/fstab
> > which refers to USB sticks, but nonetheless any USB stick inserted is
> > recognised and automounted under /media/joe (maybe immediately and maybe
> > on access, I'm not sure, but it shows instantly in file managers) with
> > everything in a FAT partition having ownership of joe:me and
> > permissions of 644. Ext partitions have their own permissions, as
> > expected.
> > 
> > This all Just Works, and I have no idea what configuration it depends
> > on. "I didn't build this," sid basically builds and rebuilds itself, so
> > I tend to keep my fingers out of the works. I do know that USB sticks
> > were a real pain with usbmount, which *sometimes* mounted the entire
> > device instead of the partitions, and at some point, things just
> > started working better.
> > 
> > There is nothing in /etc/polkit-1, /etc/udev or /etc/udisks2 referring
> > to USB sticks, which are the most likely suspects as far as I can see.
> > Presumably the culprit is systemd, as usual, so possibly someone more
> > knowledgable about this beast can finish my part-answer.

[toc] | [next] | [standalone]


#174926

From<tomas@tuxteam.de>
Date2016-11-20 17:10 +0100
Message-ID<sFCQN-5Md-9@gated-at.bofh.it>
In reply to#174925
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Nov 20, 2016 at 10:15:40AM -0500, rhkramer@gmail.com wrote:
> Ok, I tried it on Jessie, and it works essentially the same way, with a few 
> slight differences:
> 
>    * when the USB stick shows up in dolphin, it does not show the mount point, 
> instead it says something like "Removable 8MiB device"
> 
>    * if I then go to a CLI and look under media, I find the device listed as 
> follows, and can access the files:
> 
> e.g., ls /media/<myuserid>/84BE-2329.
> 
> I don't know where the "84BE-2329" comes from, but it seems to be associated 
> with the USB stick, as it is the same on both machines.

This is most probably the file system label.

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlgxyPIACgkQBcgs9XrR2kbAyQCfUYTkXNPySLQJBoGVpNrmFnpM
oQsAn3QXRq6bRZ0DvPNpJ5BmsqSsUrmQ
=KEyc
-----END PGP SIGNATURE-----

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web