/srv/irclogs.ubuntu.com/2024/04/20/#ubuntu.txt

iconoclast_heroogra_: in using the systemd script and ssh, it became obvious that, in order to leverage my ssh keys as well as my visudo permissions on the client side, i was going to have to set the user in my systemd shutdown script to my user instead of root...00:01
iconoclast_heroit seems like that might be a security concern?00:01
sarnoldi don't know what you're doing but this sounds weird, yes :)00:02
iconoclast_herowe were talking earlier about pushing a umount command over ssh via systemd execstop00:05
iconoclast_heroso that when i shutdown my server i didn't have issues on my laptop since asking the user to remember to dismount the volumes prior to rebooting the server will prove spectacularly unsucessful.00:06
sarnoldahhhh interesting idea00:07
iconoclast_heroas i started to put it together i realized root can't ssh into the other side.00:07
iconoclast_heroclient side00:08
iconoclast_heroor server side for that matter, but that's moot00:08
iconoclast_heroand i would need a key pair to log in so unless i created 2 more users whose only roles were to do this, i just use my own keypair.00:08
iconoclast_herohowever, on the client side, the visudo of the other user could be just `sudo umount -a -l -t nfs, sshfs`00:09
sarnoldiconoclast_hero: so .. my first idea is that the server could run a 'do nothing' service, like a socat listener that forks off a sleep 9999999 program .. the client could then connect to this service, and when the connection drops, then run the umount command .. the server just needs to kill the connection to initiate the umount00:14
sarnoldi'm guessing this could be built with nc, socat, stunnel4, sorts of things; and they might not even need to send data to each other. maybe.00:15
iconoclast_herook, this is a whole nother level of complexity00:15
iconoclast_herobut go on.00:15
sarnoldtry, in one terminal, nc -l 1234 ; and then in another terminal, nc localhost 1234 ;  hit enter on both of them a few times, see them on the other side, things looking good .. hit ^C on the nc -l 1234   one, and then the next time you hit enter on the client one, it'll return to the shell00:17
sarnoldi'm not entirely sure how to turn that into the thing you want :( but it's the flavor of what I'd work with ..00:17
iconoclast_herowell...00:18
* JanC tries to understand what you are trying to do?00:18
sarnoldI got to thinking about socat because the 'exec' thing it supports might be better at handling multiple clients00:18
sarnoldJanC: get a client to unmount a filesystem gracefully when a server is rebooting00:18
iconoclast_heroi only have one client, but that might not necessarily hold.00:18
iconoclast_herohere's what i put together.00:18
JanCa client-side filesystem?  a network filesystem?00:19
iconoclast_herohttps://bpa.st/B6DQ00:20
iconoclast_herohttps://bpa.st/HVNA00:20
iconoclast_heroi was talking earlier about pushing a umount command over ssh via systemd exestop so that when i shutdown my server i didn't have issues on my laptop since asking the user to remember to dismount the volumes prior to rebooting the server will prove spectacularly unsucessfu00:21
iconoclast_heroi was using sshfs when my system was remote, but now everything's local so i'm using nfs.00:22
iconoclast_herosarnold, what happens if there's a momentary loss of signal or something?  will the nc connection have any timeout period or ...?00:23
sarnoldiconoclast_hero: well, that's one of the weak points. if there's no data sent over that socket, it can 'live' silently for *ages* .. if there's a NAT firewall between them, it might drop the state ..00:24
sarnoldiconoclast_hero: so it should ride out the network going away for a few minutes, but if you just yank the power directly, the server won't send any of the TCP teardown packets, and the client will never notice00:25
sarnoldiconoclast_hero: doing better would require some real thought :)00:25
JanCone option is to have a reverse ssh tunnel that issues the unmount command, I guess, but even then... are you willing to make the server reboot wait until the client is ready, etc.?00:25
iconoclast_heroit is not impossible that I mess something up and reboot the server while the client has something open, but i just don't have data that's that important and it doesn't go back and forth between the machines.00:26
iconoclast_heroif i reboot the server and i've got vlc with an nfs share open, who cares?00:27
JanCbut when you are writing to an NFS filesystem it might have data "in flight", and I doubt it will unmount then  :)00:27
iconoclast_heroso i was literally going to push the umount -lat nfs, sshfs command and hope for the best...00:27
iconoclast_heroyeah, that came up before.00:28
iconoclast_heroearlier.00:28
iconoclast_herowhat i've been doing is basically doing a umount -l on the back end so I'm not sure if that's going to work if i try to do it ahead of time.00:29
JanCautofs can be useful also, up to some degree00:29
JanCand VLC can do userspace NFS00:29
JanCno need to mount anything for VLC  ;)00:30
JanCas can most Gtk applications through GIO/Gvfs00:30
iconoclast_heroprimarily, it's just being able to move back and forth between the two file systems in the local shell.00:31
iconoclast_herovlc was the last thing i can remember being open for any length of time.00:31
iconoclast_heroclient shell00:32
=== Szadek36 is now known as Szadek
iconoclast_herouserspace nfs is just an nfs implementation that doesn't require kernel and systemd?  i don't understand what that means exactly...00:32
JanCit can do NFS without the need for "mounting" in the OS sense of that00:33
sarnoldJanC: vlc does userspace NFS?? wild :)00:33
sarnold.. given that it's stateless though maybe it shouldn't be so surprising00:33
JanClibnfs00:34
JanCand GIO/Gvfs allows any Gtk application to do that too really00:34
JanCjust access files as nfs://server/path/to/file00:34
sarnoldgvfs bugs me though00:36
iconoclast_heroautofs: Remember, automount will mount your SSHFS file-system as root, so you need to:00:36
iconoclast_heroCopy your private key to the /root/.ssh directory. Be sure that you understand the security implications of this before proceeding.00:36
iconoclast_heroAdd the necessary host keys to /root/.ssh/known_hosts.00:36
iconoclast_heroyeah, no.00:36
JanCif gvfsd-nfs ever hangs, you can just kill it--a lot less troublesome than a hanging NFS kernel mount  :)00:38
JanCsarnold: ^00:38
iconoclast_herohttps://www.reddit.com/r/Fedora/comments/s3sdqj/gvfsnfs_mounts_are_significantly_slower_than/00:41
JanCyes, it's slower00:41
JanCis it relevant?00:41
iconoclast_heroby 50%?00:41
JanCis it relevant?00:41
iconoclast_heroi don't know00:42
sarnoldJanC: apparently 'intr' is the default nfs mount these days!00:42
iconoclast_heroi mean, i don't use nautilus, so unless i can use gvfsd in the terminal, no.00:43
JanCyou can use the 'gio' command to mount with Gvfs00:43
JanCand I'm not saying it's the best solution, just an option00:44
iconoclast_herowell, things could have gotten better in 2 years00:45
iconoclast_herowhat the hell is GIO?  that's not googleable and man doesn't literally spell it out.00:46
JanC"man gio"   :)00:46
iconoclast_heroyes, "gio - GIO commandline tool" is somewhat self-referential.00:47
sarnoldhah yeah I really dislike the gnome docs ;(00:49
sarnoldit's just a generic io thingy that gnome programs use to read and write files and so on that implements some network protocols in userspace rather than using the kernel mount facilities etc00:49
JanCright00:50
JanCand the 'gio' command line tool allows you to use most of its features00:50
JanCbut again, I don't know if it is what you want to be fair00:51
JanCit uses FUSE to make virtual mounts available to non-Gtk applications too (which is probably why it's somewhat slow)00:52
iconoclast_herowell...00:54
iconoclast_herothere's data i saw on secured fuse-based sshfs vs secured nfs4 and maybe samaba....  and sshfs holds its own vs nfs4.00:55
JanCas you mentioned VLC, it's always been fast enough to play video _for me_00:55
iconoclast_heroi don't transfer big files often but it does happen.00:55
iconoclast_herosince i'm the one moving them, it's unlikely that i'm in the middle of doing that and rebooting so the problem of writes is unlikely... so, since this is prior to the server going down, i think maybe a -f would be useful in the umount as well.00:57
iconoclast_heroso unoumt -alft nfs, sshfs00:57
iconoclast_herobut i still have the problem with sshfs and isn't that a user-space fuse system?00:58
JanChow is that an issue?00:59
JanCif you really want to trigger unmounts on server shutdown, I think you probably want a reverse ssh tunnel on every connect, and a restriction on what commands the server can issue on the client00:59
iconoclast_heroreverse ssh tunnel?01:00
JanCsay, trigger some systemd session unit01:00
JanCyou make the server ssh back into your laptop01:01
JanCthrough a tunnel set up by your client when it connects to the server01:01
JanCwhen you set up an ssh connection, it can tunnel more than just the shell you usually use it for01:04
iconoclast_heroostensibly i know about ssh tunneling vnc, i just've never done it.01:05
iconoclast_herobut it wouldn't be a reverse tunnel, it could just be a tunnel if i understand what a reverse tunnel is.01:05
iconoclast_herobut as far as a trigger, if you can think of something...  otherwise, i am sure i can "MAKE" soemthing that will work.01:06
JanCcreate a user service to set up (start) & tear down (stop) the sshfs mount, and through the reverse tunnel trigger a stop event for it?01:12
JanCsounds like that would be about the cleanest you can get...01:12
=== chris14_ is now known as chris14
iconoclast_heroyeah, i will look at that, thank you01:26
sarnoldif you do use ssh, consider making an account and keys just for this specific thing -- then you can set the key to only execute the one systemctl command that you need, or a shell script that runs the systemctl command, etc01:27
JanCyeah01:28
JanCalso, sshd doesn't have to listen on public IP address for this01:28
JanCon the laptop01:29
JanC(you could use something else to trigger the command also, I guess)01:29
JanCanything that listens on the laptop and can trigger a command could work01:32
JanCI guess that might include systemd itself even?  (never tried)01:32
sarnoldha! I forgot about the .socket thingies01:36
iconoclast_heroi don't understand sockets yet01:52
iconoclast_heroi figured out mpd is using them.01:52
iconoclast_heroi just don't know what they are and why i want them yet.01:52
iconoclast_herobut as for the account and keys, how do you tie a key to a command?01:53
iconoclast_heroor the account can only do that one thing?01:53
sarnoldyou could use ForceCommand in a Match block in the sshd configuration https://unix.stackexchange.com/a/464640/706401:58
sarnoldthere's some command=/foo/bar   support in the key format but I'm not sure how that works :(01:59
sarnoldand the ssh-keygen manpage mentions a force-command with *certificates* .. which might be really cool. i've been meaning to learn how those work for years.02:00
=== lubuntu is now known as tumito
iconoclast_heroI see02:07
iconoclast_heroaccording to mike malone, we're doing ssh wrong02:08
iconoclast_herohttps://smallstep.com/blog/use-ssh-certificates/02:08
rboxthats also how the xz backdoor worked02:09
rboxso... are certificates really that good?02:09
iconoclast_hero"SSH encourages bad security practices. Rekeying is hard, so it's not done. Users are exposed to key material and encouraged to reuse keys across devices. Keys are trusted permanently, so mistakes are fail-open."02:09
sarnoldiconoclast_hero: thanks for the link02:09
iconoclast_herowell, i think he's got a point there.02:09
sarnoldyes02:09
iconoclast_heroi should probably change all my keys02:10
iconoclast_herolike now02:10
* iconoclast_hero sighs02:10
=== antonispgs3 is now known as antonispgs
rboxand who is mike malone anyway02:13
rboxis that post malones cousin?02:14
iconoclast_hero🤷02:15
iconoclast_heroi just thought it sounded good02:15
rboxhes trying to push some kind of a prouduct02:15
rboxof course hes gonna make it sound good02:16
iconoclast_herono, i meant "[22:08:58] <iconoclast_hero> according to mike malone, we're doing ssh wrong"02:17
rboxof course hes  going to say that02:21
iconoclast_herowell, i don't know that he succeeded in making it easier for a wider audience to understand02:22
porkknoxknock knock03:28
lotuspsychjewho's there?03:28
porkknoxSurprisingly, you. This place isn't dead?03:28
=== aaaaaaa is now known as perpustakaan
=== coren is now known as lillimax
=== gschanuel53 is now known as gschanuel5
remaI try to compile module CONFIG_TOUCHSCREEN_WACOM_W8001 for friendlyelec nanopc t6. make clean fails (scripts/Makefile.clean:15: drivers/base/arm/memory_group_manager/Makefile: No such file or directory). Any suggestions how to compile and load the module for my penabled?07:52
=== zabir is now known as dickson
=== deepSleep is now known as Guest3455
Guest3569Hi.  I've a bionic small server amd64, I cannot upgrade it to newer version of ubuntu yet.10:36
Guest3569How can I compile or back port pgbackrest?10:36
lotuspsychjeGuest3569: do you pay for ESM on your bionic?10:38
ice9when doing ssh with encrypted private key, it doesn't ask any more to unlock it using the GUI/seahorse in gnome-shell, but it's asking it from the CLI; how to fix that?10:38
legend1234buongiorno11:18
eszterbtest 111:41
=== Guest3569 is now known as ferz
=== ancientz8 is now known as ancientz
ferzwhich is the package for lib openssl?12:40
BluesKajHi all12:49
=== g-lobster is now known as gammaraylobster
=== coz_ is now known as Bcoz_
a1fahello! is anyone testing 24.04? there are some annoying drm hangs with radeon driver13:37
a1falooks like its  hanging the entire pci backplane13:42
Wyslijp16hi everyone13:53
Wyslijp16I was here about wednesday to install Ubuntu, some persons said me to install the iso on one usb and next to install from the first usb to an other13:53
Wyslijp16I have now the iso on one usb, and the other, can someone help me step-by-step or have a great tutorial on youtube please ?13:53
respawnjust folow the installer promts13:54
respawnif you are dual booting you will get option to install alongside13:55
Wyslijp16I'm in the ubuntu test mode, i started install ubuntu to install in my usb13:56
Wyslijp16but it gives me an error about partition menu...13:56
respawnyou need to pick the hard drive and check if it is detected disable safeboot and fast boot13:56
Wyslijp16It's done13:57
bigfoot1Hello All. Ihave a pi400 and wnt to do an Network-Load a KUBUNTU. Is here a version with KDE interface?14:33
bigfoot1Ok,bye.14:35
mlvnhi15:33
mlvnis there anyone here15:35
RaptureMehello15:50
RaptureMeanyone here ?15:50
gordonjcpRaptureMe: quite a lot of people are here16:00
gordonjcpit's Saturday teatime though16:00
gordonjcpprobably very few people are looking at their computers16:00
vargfrostwhen i click show hidden files in nautilus a file named  .cef-dev-tools-size.vdf  and it contain: https://paste.ubuntu.com/p/b9hrFMr6r9/ what is this? why does show hidden files in nautilus create this file?  im running Ubuntu 22.04.4 LTS 64 bits.16:01
oerheksa short search ' .cef-dev-tools-size.vdf' leads to steam creates this file?16:05
oerheks'show hidden files ' itself did not create it16:05
=== Guest957 is now known as user
=== user is now known as Guest7659
vargfrostwell i thought it was for the windows version of steam it created that file16:08
vargfrostit looks like it creates it for linux also then16:09
vargfrostok anyways thanks for the help16:17
ice9how to report a bug about a snap app?16:25
oerhekssnap info <snap_name>  gives the publisher and a contact email or URL which can be used to report issues.16:27
oerheksprobably https://forum.snapcraft.io/categories is the best place16:27
ice9unfortunately Skype has no contact email and I'm getting the below line every second in the log, there are about 830 entries in few hours:16:36
ice9audit: type=1400 audit(1713630883.891:16965): apparmor="DENIED" operation="open" class="file" profile="snap.skype.skype" name="/sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:01/ACPI0003:00/power_supply/AC0/online" pid=37554 comm="skypeforlinux" requested_mask="r" denied_mask="r" fsuid=1000 ouid=016:36
oerhekscontact them to alter apparmor spam level https://snapcraft.io/skype16:38
oerheksnot how to do this for a snap package https://wiki.debian.org/AppArmor/HowToUse#Enabling_profiles16:41
juliaaaon  22.04 im  trying to figure out why my sshd doesn't always start when I reboot after a kernel update. I'm pretty sure I've got it set so that it waits on the network to come up first :|17:44
rboxwhat does the journal say the failure is17:45
juliaaa?17:46
rboxwell if its not starting, that means its failing to start17:47
rfmactually sshd is triggered by a socket unit, so it doesn't even try to start until the first connection attempt is made17:48
juliaaawhat might be wrong then?17:48
oerhekssudo systemctl status ssh17:49
juliaaaoerheks well, I run it headless. oddly, on a 2nd (hard) reboot, it comes up.17:53
juliaaajust updated and rebooted (new kernel, docker, and sshd update)17:55
juliaaaprobably networkmanager being a b?17:56
juliaaassh.service has After=network.target set17:57
juliaaassh.service shows started, however my ssh.socket config shows the default port. I'd changed the sshd port in the sshd conf file to a non-standard port18:09
irgendwer4711hi, ubuntu server installer keeps crashing again and again. I can't install after selecting partitions...18:19
tomreynirgendwer4711: you might want #ubuntu-server for supported stable releases, or #ubuntu-next for what will be 24.04 LTS18:22
irgendwer4711tomreyn: ok switching...18:23
deadromhi19:08
deadromraspi sdcard in a sdcard reader on ubu22.04, blkid has nothing on the two partitons on it but should have. sdcard reader issue? usb issue?19:09
deadromnvm sudo was missing19:10
=== henry404088 is now known as henry40408
=== quique_ is now known as quique
=== henry404088 is now known as henry40408
=== ajfriesen6 is now known as ajfriesen
pycuriousOn my ubuntu login UI - I see enter PIN for Smartcard? How do I entery my password and login? Instead of smartcard?23:27
pycuriousIs this what i need to run -> sudo -u gdm env DCONF_PROFILE=gdm gsettings set org.gnome.login-screen enable-smartcard-authentication false23:28
pycuriousno matter what i try - i get "pin for smartcard"23:40
pycuriousI guess I broke ubuntu - now it says "Something went wrong. The system cant recover"23:46

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!