libera/#devuan/ Thursday, 2022-12-29

xisopgitea is back up00:09
Xenguygood to know00:11
AfdalAll right, I've got an annoyance I've been working around for a while but I'd finally like it resolved01:00
AfdalFor some reason my Devuan/desktop environment/file manager keeps interpreting binaries as Shared Libraries01:00
AfdalSo I have to go into a terminal and do ./runmybinarydummy in order to run them01:01
Afdalit's really aggrevating01:01
AfdalWhen they're interepreted as Shared Libraries it doesn't allow a simple double click01:01
Afdalthis often happens to compiled binaries for me01:01
Afdalrunning Devuan Chimaera with Xfce here01:02
AfdalCan anyone explain why this is happening?01:02
HurgotronAfdal: Never had that. Where do you click? Desktop starter?01:02
AfdalWhat do you mean?01:03
AfdalI'm just trying to double click binaries files to run the heckin binaries and it thinks they're not binary file types but Shared Library file types instead01:03
AfdalRunning "file" on an example here, it says it's a "ELF 64-bit LSB pie executable"01:04
HurgotronFor the few things I want to start by clicking in GUI, I reate a desktop starter - right mouse button on desktop, create starter (or somesuch, local language is german here)01:04
AfdalOh you mean, create a launcher?01:05
HurgotronI'm still not sure where you "double click binaries files" - on the desktop? In some file manager?01:05
Afdaleither, doesn't matter01:05
Hurgotronlauncher probably. Never had issues with that01:06
AfdalI mean, I guess I can just make a Launcher file01:07
Afdalthat does work...01:07
Afdalbut why are some binaries interpreted as the shared libraries like this?01:07
HurgotronGood question. Trying to reproduce. Do they have some extension?01:08
AfdalNo01:09
HurgotronAfdal: Ah, got it. I guess the DE misinterprets the outout of "file"... interesting01:13
HurgotronAfdal: https://www.linux.org/threads/problem-with-executables-as-shared-library-files.25886/01:17
HurgotronDoesn't sound entirely convncing to me, but fits your experiences01:18
Afdalhmm01:19
Afdalthis reply says:01:19
AfdalCompile the program without the "pie"(position independent) flag and you will be good. Position independent programs require a dynamic loader to be run so they have the "dynamic" flag set, which is traditionnaly used by programs to detect libraries (pie uses a mechanism similar to libraries).01:19
AfdalSo... does that mean a lot of devs are setting the wrong flag by default?01:19
AfdalBecause this is a rather common problem for me01:19
Hurgotronpie seems to be a common setting01:20
HurgotronIt's probably more like the DE starting mechanism makes some wrong assumptions01:20
HurgotronI guess most people (including me) want icons and stuff for the things they launch from GUI01:21
HurgotronSo I never had that problem01:21
HurgotronWould be an XFCE issue01:22
HurgotronOr maybe you can try to associate bash with that type of file, soe the DE opens "bash executable" which should work01:22
XenguyI only know that doing ./executablefile is very much a traditional thing...03:13
XenguyNot sure if there's a security rationale or not03:13
ravehaver9000just installed s6 as a process supervisor in my system04:09
ravehaver9000might test it out as an init system on a virtual machine04:10
gnarfaceravehaver9000: before you left the other day i forgot to clarify that the proper place to edit the grub cmdline is in /etc/default/grub (then re-run update-grub)04:21
gnarface... just in case you weren't aware, didn't want you struggling with manual edits to /boot/grub/04:21
gnarfacedebian changed how that works some time ago04:22
ravehaver9000oh, thanksx a lot gnarface05:21
ravehaver9000i just edited /etc/default/grub and updated grub, only took a minute!05:22
rwpc07:29
sedroskenso -- I've accepted I'm going to need to recompile telnetd to include PAM support for my use case (restricting login to only one user)10:16
sedroskenbut I'm not sure how I'd enable that10:17
sedroskenbefore anyone even starts in with the "telnet bad use ssh" rigmarole it's a legacy situation and it *has* to be telnet10:17
sedroskenI'd very much prefer to be using ssh but for this case I just can't10:18
gnarfacesedrosken: i'm surprised it doesn't include pam support by default in the debian build, are you sure that it does not?11:57
sedroskenldd /usr/sbin/in.telnetd returns no references to any PAM libraries11:58
gnarfacewell shouldn't be hard to rebuild anyway11:58
sedroskenand setting stuff in /etc/pam.d/* files doesn't seem to affect it11:58
gnarfaceapt-get source telnetd11:58
gnarfacedpkg-buildpkg -us -uc11:59
gnarfaceor something of the like11:59
gnarfaceconfig flags are in the debian/control file i think11:59
sedroskenand man telnetd mentions under -a authmode "Note that this option is only useful if telnetd has been compiled with support for authentication, which is not available in the current version"12:00
gnarfaceoh you should "apt-get build-dep telnetd" and "apt-get build-essential" first if you haven't, but it will probably work12:00
sedroskenwhere will it put that?12:01
sedroskenthe debian/control file12:01
sedroskenI'm not sure where source files go when they're installed by debian/devuan12:01
gnarface$SRCROOT/debian/control12:01
gnarfaceoh, "apt-get source [package]" downloads to the current directory12:01
sedroskenoh!12:01
sedroskenthanks12:01
gnarfaceany debianized source should have a ./debian/ directory at the top level, with a main control file and probably a bunch of serially numbered patches12:02
sedroskenright12:02
sedroskenit mentioned it was applying about a dozen patches12:02
gnarfaceif you're just adding a flag for the build configuration it's probably just something you can add to the existing line in the control file12:03
sedroskenwould I put it in the Depends: line?12:03
sedroskenI'm guessing I'd be adding some permutation of libpam to that12:04
gnarfaceuh, i forget12:04
gnarfaceyes, i think you would want to edit the depends12:05
gnarfaceprobably add a custom version string or at least edit the build serial number too12:05
gnarfaceand "-us -uc" above would be assuming you're building an unsigned package, but i dunno how official your setup is, maybe you want to sign the package too12:06
gnarfacei think we have a devuan reference for this somewhere, but i keep referring back to debian's new maintainer guide, starting with chapter 6 because they put everything out of order on purpose: https://www.debian.org/doc/manuals/maint-guide/build.en.html12:07
gnarfacethey overcomplicate it too, usually the process of making a minor change doesn't require knowing all this12:07
gnarfaceyou shouldn't have to mess with quilt or anything12:08
gnarfaceif there's a devuan reference guide somewhere i forget the link12:09
gnarfaceit should mostly not be different though12:09
sedroskenldding the finished in.telnetd shows no change12:10
sedroskenhm12:10
sedroskenam I just too smoothbrained for this12:10
gnarfacemaybe it's not a flat topology? maybe something else depends on pam? i dunno sorry12:11
sedroskenI just wanted to stop anyone but a specific user from logging in via telnet :/12:12
gnarfacewell i have a feeling there's another way to do what you want that doesn't require rebuilding anything but i'm not sure what it is12:12
gnarfacemaybe look into openldap?12:12
gnarfaceactually deploying it might not be easier than figuring out how to rebuild telnetd right though, dunno12:12
sedroskengranted this use-case has only me as the user, and it's on a closed LAN12:13
sedroskenif someone manages to get into my LAN I've got bigger problems than someone being able to log in as root over telnet12:13
sedroskenI'm just trying not to deliberately be any more insecure than I have to be12:14
gnarfacewhat configure flag did you add to the control file?12:14
sedroskenadded libpam-modules to the Depends: line12:14
sedroskenthe control file didn't seem to have much to do with how the package actually builds, it seems to be more of a package description file12:15
gnarfaceoh? that's it? well there's a problem12:15
gnarfacesomewhere in there should be a literal string of command-line options for the ./configure flag, i'm sure you'd have to edit that too12:15
sedroskeninteresting12:15
sedroskenI'll nuke the directory and grab fresh12:15
gnarfacethe Depends field is literally just to tell the package to also install those other packages, it won't change the build itself12:16
gnarfaceall the packages do things a little bit different so maybe they've batched the configure command-line up from some script that assembles it or something, you might have to poke around a bit... hopefully it's not anything too complicated12:17
gnarfacethe control file should be the main entry point though12:17
gnarfaceso simpler packages put pretty much everything in there12:17
gnarfacepossibly downloading a couple other simpler source packages to look at them as a comparison might make things clearer12:18
sedroskenhttps://pastebin.com/UGiB5fRG12:18
gnarfaceuh, i don't trust pastebin, just /msg it to me or use paste.debian.net12:18
sedroskenoooooooooooooooookay then12:19
gnarfaceassuming the package is using automake it's still gotta call configure somewhere12:19
sedroskenhttp://paste.debian.net/1265606/12:20
sedroskensorry for the double-paste there, but that's the entire contents of control12:20
gnarfacehmm12:27
gnarfacewhat about debian/rules?12:28
gnarfaceanything in there ?12:28
sedroskenmessaged it to you12:28
gnarfaceoh, it's using cmake12:28
gnarfaceso that's probably why it's different12:29
sedroskenoh dear12:29
gnarfacewell, figure out where cmake keeps the build options12:29
sedroskenCMakeLists.txt in the parent directory, looks like12:30
sedroskenC FLAGS look like -D_GNU_SOURCE, -Ddebian, -DACCEPT_USERVAR, -Wall, and -Wno-trigraphs12:30
sedroskenwelp now I just need to figure out what parameter will enable PAM12:33
sedroskenand that seems to be out of scope for this12:33
gnarfacei'm assuming "./configure --help" won't help?12:34
gnarfacethere's no configure script, is there?12:34
sedroskenthere is12:35
gnarfacethere IS?12:35
gnarfacehmmm12:35
gnarfacemaybe the options for it are separate12:35
gnarfaceseparate from the c flags12:35
sedroskenyeah it just seems to be setting basic install options for use with make12:35
gnarfacetry to grep for them or something12:36
sedroskenno need, the output is quite small12:36
gnarfacethat's it??12:37
gnarfacewell that's not helpful12:37
gnarfaceare we sure this source even has pam support available?12:37
sedroskenThat's a good question and it may well not.12:38
gnarfacewait, which source package did you request, specifically? inetutils-telnetd?12:38
sedroskenjust what apt refers to as telnetd12:38
gnarfacehmmm12:38
sedroskenthere's telnetd and telnetd-ssl12:38
gnarfacei guess i'm seeing a transition to a different package name happening in ceres12:39
sedroskenstrange for something borderline deprecated12:39
gnarfacei assume these are the things you had already tried? https://serverfault.com/questions/36322/how-can-i-use-pam-to-restrict-telnet-login-by-user12:40
sedroskeneeyup12:40
gnarfacei wonder if there's a way to make openssh support telnet12:40
gnarfacei know it can be run without encryption, but i'm not sure if there's actually a way to add telnet client support12:40
sedroskenit'd be so much simpler if the client just supported ssh properly in the first place12:41
gnarfacegrep the source for any mentions of pam12:42
sedroskenwell that doesn't seem to return anything12:43
sedroskenguess that settles that12:43
sedroskenoh well. like I was saying, if someone manages to get into my LAN I have bigger problems than people being able to login as root12:43
gnarfacegrep -i?12:43
sedroskennothing12:43
gnarfacenot very promising12:43
sedroskenwonder what telnetd implementation these folks are using that it DOES support PAM12:44
gnarfacea good question12:44
sedroskenthe funny thing is, the client can *technically* do SSH, but it's too slow to negotiate a connection12:45
sedroskenit exchanges keys, but times out before it properly connects12:45
gnarfacehmm, i wonder if there's a way to address that then with lower encryption level, shorter keys or something12:45
sedroskenmaybe12:45
gnarfacechange of cypher suites12:45
sedroskenhm12:46
gnarfacethere should be a way to make a new openssh server behave more like an old version from around the time of the creation of the client in question using such settings12:46
gnarfaceor, you could try just turning off encryption for openssh, maybe that will obviate the problem12:47
sedroskenyeah, it's exchanging an RSA-2048 key and probably using a really complex cipher on a FPU roughly the speed of a 33MHz 8038712:47
gnarfacelike i said, you can run openssh without encryption, i'm just not sure if there's any actual telnet support built in12:47
gnarfacebut if the client can also do ssh and is just too slow, there should be a way to address that from the openssh server side12:48
sedroskenfor SSH negotiation, do they typically do lowest common denominator or highest12:48
sedroskenie if I enable both aes-128 and aes-256 will it use 128 or 256 by default if both client and server support both12:48
gnarfacei'm not actually sure, you would think it does highest-common-denominator but for some reason my head is telling me there's just a file with a list of them and it simply tries them in order12:49
gnarfacemaybe that's only for ssl though12:50
sedroskenyeah, in sshd_config there's a Ciphers line12:50
gnarfacebut there might be a way to just make it try the 128 one first by moving it to the front of the line12:50
sedroskenI'm guessing it'll try them in order12:50
sedroskenwell, I've simplified the key exchange to the point now where I think it's done pretty much instantly... but even AES-128 looks like it's too much for this poor thing13:14
gnarfacelook into running it without encryption entirely13:17
gnarfaceit shouldn't be any less secure that way than telnet would have been13:18
sedroskenthat's a fair point13:18
u-amarsh04sedrosken telnetd-ssl package might be what you need14:54
sedroskenchecked that too and it doesn't seem to be linked to PAM either, it just encrypts the telnet session with SSL14:54
sedroskenfrom what I understand14:54
u-amarsh04ah14:54
sedroskenI appreciate the thought though14:55
u-amarsh04I just use telnetd-ssl and ckermit between the two pc's I have at home14:55
tomtmymHello17:34
tomtmymIs "nvidia-driver" the one required if have nvidia?17:34
ravehaver9000yeah it is17:51
ravehaver9000nouveau sucks so you have to install the propietary drivers asap17:52
ravehaver9000else nouveau might break on you and leave you with a completely useless black screen that also breaks your system (although thats more of an experience ive had with my testing install)17:52
tomtmymravehaver9000: ok, thanks18:23
golinuxI discovered that the DNG mail cert was expired last night when I went to check some admin stuff. Have notified the folks at dyne but with the holidays who knows when it might get fixed. In the meantime no mail will be coming through on DNG. Patience .18:27
ravehaver9000thanks a lot golinux18:42
ravehaver9000i personally dont use the mailing list much but im glad youvve told us about it18:42

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!