Re: [DNG] Devuan with usr merge?
Didier Kryn said on Mon, 8 Nov 2021 13:50:25 +0100 >Le 06/11/2021 à 03:03, Steve Litt a écrit : >> Personally, I want a directory, guaranteed not to be a mount point, >> where the statically compiled binaries necessary to bring up the >> system, things like mount and ln and vi and fsck, etc, so if I don't >> want to, I don't have to run an initramfs. > > Hi Steve. It seems you always understand the s of sbin as meaning >"static". it isn't. Look at Devuan binaries in /sbin and /usr/sbin; >they are dynamically linked. s stands for "system". > > # file /bin/mount >/bin/mount: setuid ELF 64-bit LSB pie executable, x86-64, version 1 >(SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, >BuildID[sha1]=82eb1fdddc0083f599c4072f4e1a39e28de6c759, for GNU/Linux >3.2.0, stripped > >What is called "interpreter" here is the dynamic linker associated to >the shared version of gcc, the Gnu C library. There is practically no >statically linked application in a Debian distribution, except some >part of debootstrap. Hi Didier, The logic is still the same. I need a guaranteed place on the root partition to find the programs necessary to mount all the other partitions, or else I'll need to run an initramfs. SteveT Steve Litt Spring 2021 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] Devuan with usr merge?
Didier Kryn - 08.11.21, 13:50:25 CET: > What is called "interpreter" here is the dynamic linker associated to > the shared version of gcc, the Gnu C library. There is practically no > statically linked application in a Debian distribution, except some > part of debootstrap. Well and special packages like bash-static, busybox-static and zsh- static. Nice to have in case you want to do crazy things with your system that might cause interesting breakage like switching a system in place from 32 to 64 bit. -- Martin ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] pkexec in Chimaera
Le 08/11/2021 à 14:16, Didier Kryn a écrit : > There is a hand-made replacement for pkexec and the good old gksu > and gksudo: > > In your sudoers file (edited with visudo), put the following line > > Defaults env_keep = "XAUTHORITY DISPLAY" > > Note there can be other variables in the list, like EDITOR, but the > above are the ones which will allow you to run GUIs under root priviledge. > > Then allow yourself to run foo with sudo (also by editing your sudoers > file vith visudo) and then > > sudo foo > > hth > > -- Didier > Alternative: su -w DISPLAY,XAUTHORITY -c /usr/sbin/foo Doesn't work with option -l of su; therefore the PATH is yours. -- Didier ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Devuan with usr merge?
On Mon, 8 Nov 2021 13:50:25 +0100 Didier Kryn wrote: > Le 06/11/2021 à 03:03, Steve Litt a écrit : > > Personally, I want a directory, guaranteed not to be a mount point, > > where the statically compiled binaries necessary to bring up the > > system, things like mount and ln and vi and fsck, etc, so if I don't > > want to, I don't have to run an initramfs. > > Hi Steve. It seems you always understand the s of sbin as meaning > "static". it isn't. Look at Devuan binaries in /sbin and /usr/sbin; they > are dynamically linked. s stands for "system". > > # file /bin/mount > /bin/mount: setuid ELF 64-bit LSB pie executable, x86-64, version 1 > (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, > BuildID[sha1]=82eb1fdddc0083f599c4072f4e1a39e28de6c759, for GNU/Linux > 3.2.0, stripped > > What is called "interpreter" here is the dynamic linker associated to > the shared version of gcc, the Gnu C library. There is practically no > statically linked application in a Debian distribution, except some part > of debootstrap. > > -- Didier > Hi, on my system there are just a couple: /bin/sash: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=433ea9ce7bb7462db5f83bd9bd4e59535b826cc9, for GNU/Linux 3.2.0, stripped /sbin/e2fsck.static: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=b6cb05441d3e0215639e4445ca0d1947ac26ab43, for GNU/Linux 3.2.0, stripped and in the repos: bash-static/stable 5.1-2+b3 amd64 busybox-static/stable 1:1.30.1-6+b3 amd64 cdebootstrap-static/stable 0.7.8+b3 amd64 dar-static/stable 2.6.13-2+b3 amd64 zsh-static/stable 5.8-6+b2 amd64 Ciao, Tito ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] pkexec in Chimaera
There is a hand-made replacement for pkexec and the good old gksu and gksudo: In your sudoers file (edited with visudo), put the following line Defaults env_keep = "XAUTHORITY DISPLAY" Note there can be other variables in the list, like EDITOR, but the above are the ones which will allow you to run GUIs under root priviledge. Then allow yourself to run foo with sudo (also by editing your sudoers file vith visudo) and then sudo foo hth -- Didier ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Devuan with usr merge?
Le 08/11/2021 à 13:50, Didier Kryn a écrit : > Le 06/11/2021 à 03:03, Steve Litt a écrit : >> Personally, I want a directory, guaranteed not to be a mount point, >> where the statically compiled binaries necessary to bring up the >> system, things like mount and ln and vi and fsck, etc, so if I don't >> want to, I don't have to run an initramfs. > Hi Steve. It seems you always understand the s of sbin as meaning > "static". it isn't. Look at Devuan binaries in /sbin and /usr/sbin; they > are dynamically linked. s stands for "system". > > # file /bin/mount > /bin/mount: setuid ELF 64-bit LSB pie executable, x86-64, version 1 > (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, > BuildID[sha1]=82eb1fdddc0083f599c4072f4e1a39e28de6c759, for GNU/Linux > 3.2.0, stripped > > What is called "interpreter" here is the dynamic linker associated to > the shared version of gcc, the Gnu C library. There is practically no > statically linked application in a Debian distribution, except some part > of debootstrap. > > -- Didier > > Sorry, not gcc, glibc. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Devuan with usr merge?
Le 06/11/2021 à 03:03, Steve Litt a écrit : > Personally, I want a directory, guaranteed not to be a mount point, > where the statically compiled binaries necessary to bring up the > system, things like mount and ln and vi and fsck, etc, so if I don't > want to, I don't have to run an initramfs. Hi Steve. It seems you always understand the s of sbin as meaning "static". it isn't. Look at Devuan binaries in /sbin and /usr/sbin; they are dynamically linked. s stands for "system". # file /bin/mount /bin/mount: setuid ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=82eb1fdddc0083f599c4072f4e1a39e28de6c759, for GNU/Linux 3.2.0, stripped What is called "interpreter" here is the dynamic linker associated to the shared version of gcc, the Gnu C library. There is practically no statically linked application in a Debian distribution, except some part of debootstrap. -- Didier ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng