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


Groups > linux.debian.user > #174925

Re: Coercing sane file permissions -- site specific

From rhkramer@gmail.com
Newsgroups linux.debian.user
Subject Re: Coercing sane file permissions -- site specific
Date 2016-11-20 16:20 +0100
Message-ID <sFC4p-49j-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

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

csiph-web