Re: [DNG] gvfs depends on libsystemd0
Am 2017-04-10 00:39, schrieb Daniel Abrecht: I think automatically mounting thumb drives is very different from mounting them when I klick on them in my file manager. Things like automatically mounting removable medias or even auto starting applications, I don't want that. I also don't like automount on usb drives. I like to see them appear automatically in the filemanager, mount them as needed with a single click, and unmount them also with a single click to remove them. For drives that should automount (such as NAS) I use autofs. Jochen ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
Quoting Steve Litt (sl...@troubleshooters.com): > I think I know why, but I'll ask you anyway. Why don't you just put > mount in /etc/sudoers and make it not require a password? IMO, mounting / umounting is a sensitive operation (which is why Unix makes it be that way, unless you screw with it) and should be treated as such. Also, I typically don't bother to set up sudo on my own systems. Never really saw a compelling advantage, and I like to keep a nice, clean distinction between privileged shells and non-privileged ones. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
On Sun, Apr 09, 2017 at 10:39:28PM +, Daniel Abrecht wrote: > On 04/09/2017 08:01 PM, Steve Litt wrote: > > On Sun, 09 Apr 2017 08:24:15 +0200 > > Joachim Fahrnerwrote: > >> without gvfs PCmanFM does not mount external usb drives > > > > Somewhere back in the archives I submitted a shellscript to > > automatically mount thumb drives without a file manager. > > I think automatically mounting thumb drives is very different from > mounting them when I klick on them in my file manager. Things like > automatically mounting removable medias or even auto starting > applications, I don't want that. What if I want to rescue a faulty > thumb drives for example, automatically mounting it would could > damage it even further. I think that Linux doesn't do or change things > on it's own like Windows used to be a big strength of it. Automatically mounting is a security hole. Last millenium, I've found a kernel crasher in something as primitive as vfat upon mounting a tainted floppy -- a looped directory was enough to kill Linux 2.0.30 and Win95. Since then, security of filesystem drivers has vastly improved, but so has complexity of filesystems. FAT is _trivial_ compared to anything modern. I see no way even a maintained filesystem to be 100% resilient against DoS by mounting a crafted volume -- and there's a good chance there'll be arbitrary code execution as well. Unlike network code that's carefully written to be secure, at considerable efficiency cost, no one really bothers for this with filesystems. And even if someone did, it takes just one buggy filesystem -- Debian/Devuan kernels enable support for such dubious stuff as hfs or qnx4. I also can't recall ever connecting a "data" USB thingy to an Unix box -- and I have an USB stick and two SD readers on my desk right now; it's all installer media, ARM SoC disks, etc. Nothing for non-root to look at. I don't think a regular user has any reason to mount a fancy filesystem. -- ⢀⣴⠾⠻⢶⣦⠀ Meow! ⣾⠁⢠⠒⠀⣿⡁ ⢿⡄⠘⠷⠚⠋⠀ Collisions shmolisions, let's see them find a collision or second ⠈⠳⣄ preimage for double rot13! ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
On Sun, 9 Apr 2017 17:01:21 -0700 Rick Moenwrote: > Quoting Joachim Fahrner (j...@fahrner.name): > > > Hi, > > how can I get rid of libsystemd0? gvfs depends on it, and without > > gvfs PCmanFM does not mount external usb drives. > > > Is there a way to user mount external drives without gvfs? > > My way of mounting external drives: > > $ tail /var/log/dmesg # Note the device name > $ su - > # mount /dev/sdXX /mnt > # exit I think I know why, but I'll ask you anyway. Why don't you just put mount in /etc/sudoers and make it not require a password? SteveT Steve Litt April 2017 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
Quoting Joachim Fahrner (j...@fahrner.name): > Hi, > how can I get rid of libsystemd0? gvfs depends on it, and without > gvfs PCmanFM does not mount external usb drives. > Is there a way to user mount external drives without gvfs? My way of mounting external drives: $ tail /var/log/dmesg # Note the device name $ su - # mount /dev/sdXX /mnt # exit Worked twenty years ago, works the same today. Looking for a graphical file manager? I suggest bash in an xterm. ;-> ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
On Sun, 9 Apr 2017 22:39:28 + Daniel Abrechtwrote: > On 04/09/2017 08:01 PM, Steve Litt wrote: > > On Sun, 09 Apr 2017 08:24:15 +0200 > > Joachim Fahrner wrote: > >> without gvfs PCmanFM does not mount external usb drives > > > > Somewhere back in the archives I submitted a shellscript to > > automatically mount thumb drives without a file manager. > > I think automatically mounting thumb drives is very different from > mounting them when I klick on them in my file manager. Things like > automatically mounting removable medias or even auto starting > applications, I don't want that. What if I want to rescue a faulty > thumb drives for example, automatically mounting it would could > damage it even further. I think that Linux doesn't do or change things > on it's own like Windows used to be a big strength of it. > > Daniel Abrecht Mounting them only on user demand would be even easier. Here's my choosethumb.sh, which assists me to ask to mount a thumb drive: = #!/bin/sh # Copyright (C) 2017 by Steve Litt # Licensed with the Expat license: # http://directory.fsf.org/wiki/License:Expat mountsfile=/tmp/mounts.tmp mountdir=$HOME/media usage(){ echo echo 'USAGE: choosethumb.sh [-m|-u]' echo ' for mount and umount respectively' echo ' must have sudo rights to mount/umount' echo exit 9 } listdevs(){ readlink /dev/disk/by-id/*-part* | \ awk -F/ '{print $NF}' | sort -u } listthumbs(){ readlink /dev/disk/by-id/usb-*:?-part* | \ awk -F/ '{print $NF}' | sort -u } handledevs(){ while read thisdev; do if grep $thisdev $mountsfile > /dev/null; then echo `grep $thisdev $mountsfile` else echo $thisdev ' unmounted' fi done } orgdir=`pwd` cd $HOME mount | grep ^/dev/sd | \ sed -e 's+^/dev/++' -e 's+type.*++' > \ $mountsfile if test "$#" != "1"; then usage elif test "$1" = "-m"; then mychoice=`listthumbs | handledevs | sort -u | \ dmenu -l 20 -fn 10x20` resultt=$? myfcn=m elif test "$1" = "-u"; then mychoice=`listthumbs | handledevs | \ grep -v "unmounted" | sort -u | \ dmenu -l 20 -fn 10x20` resultt=$? myfcn=u else usage fi if test "$resultt" = "0"; then trimchoice=`echo $mychoice | cut -f 1 -d " "` if test "$myfcn" = "m"; then mkdir -p $mountdir/$trimchoice if sudo mount /dev/$trimchoice $mountdir/$trimchoice; then echo "Mounted /dev/$trimchoice on $mountdir/$trimchoice" else echo "Mount FAILED: /dev/$trimchoice on " echo "$mountdir/$trimchoice" exit 2 fi elif test "$myfcn" = "u"; then if sudo umount /dev/$trimchoice; then echo -n "UnMounted /dev/$trimchoice away " echo "from $mountdir/$trimchoice" else echo "Failed to unmount /dev/$trimchoice" echo "Check what is using it and try again." exit 3 fi else echo "Internal argument error, call programmer, aborting." exit 5 fi else if test "$myfcn" = "m"; then echo 'User declined to mount.' else echo 'User declined to unmount.' fi exit 1 fi cd $ORGDIR exit 0 = Modify to suit your taste. SteveT Steve Litt April 2017 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
On 04/09/2017 02:24 AM, Joachim Fahrner wrote: > Hi, > how can I get rid of libsystemd0? gvfs depends on it, and without gvfs > PCmanFM does not mount external usb drives. Is there a way to user mount > external drives without gvfs? > > Jochen > > PCmanFM mounts external usb drives for me without libsystemd0 installed. I guess it's using pmount, which is installed. What it does not seem to do is un-mount the drive, even though it acts like it does. I had to run 'pumount ' to get rid of it. There's also usbpmount, which I wrote for those of use who use Thunar and don't want libsystemd0. It uses yad for a graphical front-end, and it does not auto-mount. You have to make a couple of clicks for it to happen. https://sourceforge.net/projects/refracta/files/Extras/ Steve says he wrote one, but I think he actually wrote two. One was less than two months ago (see post "Thumb drive chooser" Feb 19). And one was more than a few months ago. fsmithred ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] grub background image
On 04/09/2017 08:32 AM, Joachim Fahrner wrote: > Hi, > how is the grub background image set on Devuan? I'm missing a background > image, I have only the default blue background in grub. > > I studied /etc/grub.d/05_debian_themes, but there are lots of variables I > don't know. desktop-base is supposed to handle that, but it's not cooperating. You can bypass it by adding the following (one) line to /etc/default/grub GRUB_THEME=/usr/share/desktop-base/grub-themes/desktop-grub-them/theme.txt and then running update-grub. If you want a different background image, then you could just add an image file to /boot/grub/ and then run update-grub. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
On 04/09/2017 08:01 PM, Steve Litt wrote: > On Sun, 09 Apr 2017 08:24:15 +0200 > Joachim Fahrnerwrote: >> without gvfs PCmanFM does not mount external usb drives > > Somewhere back in the archives I submitted a shellscript to > automatically mount thumb drives without a file manager. I think automatically mounting thumb drives is very different from mounting them when I klick on them in my file manager. Things like automatically mounting removable medias or even auto starting applications, I don't want that. What if I want to rescue a faulty thumb drives for example, automatically mounting it would could damage it even further. I think that Linux doesn't do or change things on it's own like Windows used to be a big strength of it. Daniel Abrecht signature.asc Description: OpenPGP digital signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
On Sun, 09 Apr 2017 08:24:15 +0200 Joachim Fahrnerwrote: > Hi, > how can I get rid of libsystemd0? gvfs depends on it, and without > gvfs PCmanFM does not mount external usb drives. Is there a way to > user mount external drives without gvfs? > > Jochen Somewhere back in the archives I submitted a shellscript to automatically mount thumb drives without a file manager. Someone else improved it dramatically. Everyone: This is going to come up again and again to the extent that maybe Devuan should offer this kind of script to everyone, kind of like KatolaZ created a CLI-capable shellscript that replaced NetworkManager and Wicd. SteveT Steve Litt April 2017 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
On Sun, Apr 09, 2017 at 12:58:27PM +0200, Joachim Fahrner wrote: > > Thanks for that hint. SpaceFM in conjunction with udevil is great. So I can > get rid of this ugly gvfs. gfvs is broken by design, because it creates a > ~/.gvfs directory which is not accessible by root. So every backup tool > fails when accessing this directory. > > It is untypical for Unix systems that root cannot access everything on the > local machine. I'm wondering how they achieve that, it should not be > possible at all. I don't know how gvfs does it, but it can be done with a user file system. It happens all the time when I use sshfs. An ssh file system allows only the user who mounted it to access it. Since sshfs, once it gains control, can do as it pleases, if can simply refuse to allow opeations under whatever criteria are coded into it. -- hendrik ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] grub background image
Hi, how is the grub background image set on Devuan? I'm missing a background image, I have only the default blue background in grub. I studied /etc/grub.d/05_debian_themes, but there are lots of variables I don't know. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
Am 2017-04-09 10:43, schrieb Florian Zieboll: I use spacefm. With some config-tweaking it is a perfect (and much more flexible) replacement for pcmanfm and alike: Thanks for that hint. SpaceFM in conjunction with udevil is great. So I can get rid of this ugly gvfs. gfvs is broken by design, because it creates a ~/.gvfs directory which is not accessible by root. So every backup tool fails when accessing this directory. It is untypical for Unix systems that root cannot access everything on the local machine. I'm wondering how they achieve that, it should not be possible at all. I feel more and more that the Gnome devs have no basic understanding of unix systems. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gvfs depends on libsystemd0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Sun, 09 Apr 2017 08:24:15 +0200 Joachim Fahrnerwrote: > Hi, > how can I get rid of libsystemd0? gvfs depends on it, and without > gvfs PCmanFM does not mount external usb drives. Is there a way to > user mount external drives without gvfs? > > Jochen Hallo Jochen, I use spacefm. With some config-tweaking it is a perfect (and much more flexible) replacement for pcmanfm and alike: https://ignorantguru.github.io/spacefm/ IIRC, there also was a WindowMaker dockapp, but I couldn't find it right now on the fly. If you look for reverse dependencies of udevil, udisks or pmount, you'll probably find some more suitable tools with a GUI. libre Grüße, Florian -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQIcBAEBCAAGBQJY6fRBAAoJEO5FSXn+RB/WhUkQAKbmoEMpTFM8oirxoCKohQgF dMUfI7D1xbHZsXrz+Tuo4BHbjJyr7H+FD9wZ37Aov+aqTeWqqCWD4iQ1Rhk2yiRz hKMU5EiWjJI8dowEd/Z3Pliv8ZjtN2jjI7CLezNP1bl+25R20eREicwC3mR6sx3h dq5OroKytukbGoC4sjT0z1qfNhP+t7D2yaEqVhli0mkCFVplkaUNY6vF+ZpaUYx/ mGtWEh/L48LmzFn/2nbrWbcr1QWbEdTVA5jMXdqAXAhMf3UQilP6Bf+rljz3Hr3z x69NHQhcUyBJIS+IYf5q6vAOe3sX4J0AapfFX+bupsrVTzBy7cOQr+8PGDs70HX+ 3gtPTlYM++G6boy5j8Z0Uw4DJCo5g9NYdUmqKwJ74sASpnZcr2AQ/iRP8CO/lAYE LW8c6Vlur1cbZPfCVOZSpvRXrOg9vmJ5CzM/z9oMGcvt82ZEeeZ3rO3eepaxxb7r RjcdGv8iRexvvZI03kYnoMNbKIEqha0jVwpgeKul+XIi+0390soJCJ2IwdMywxrn KPsitsZDFEUkT/Ok/WK5vPGSRYaRtoxslrLSrqanMvWqQDmZfd982onomz1HePiG 6T2BwTZ22WY8faZJXvohvLSvvPj7iSXSld+2TzLgdzxIMj6H56FX5zAFtx1S7ye0 VpJa/nvNJFYwx4G+fQX7 =BviB -END PGP SIGNATURE- ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] gvfs depends on libsystemd0
Hi, how can I get rid of libsystemd0? gvfs depends on it, and without gvfs PCmanFM does not mount external usb drives. Is there a way to user mount external drives without gvfs? Jochen ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng