[01:21] so I have a raid card that allows me to mount a volume in ubuntu server 16.04, when I upgraded to 18.04 I was unable to mount that volume [01:22] I don't remember how I mounted the volume initially, but I'd like to have the same volume with the same data in the upgraded ubuntu version [01:30] what error did you get? [01:37] good question, I'll load up my snapshot and see [01:40] so when booting, I get a failure on "failed to mount [volume]" [01:40] and then I am presented with warning I am in emergency mode [01:41] and I can also check the log for the mounting process that failed [01:43] mount: [volume]: wrong fs type, bad option, bad superbloc [01:43] if I revert to the old snapshot on 16.04 it works fine though [01:45] what filesystem type is it? does fstab just leave it auto or does it specify? [01:46] I'm trying to remember, I can switch to the other snapshot but I think it was xfs [01:46] I don't remember how to use fstab from when I set this up [01:48] I appreciate your help btw :) [01:51] does 18.04 just not support xfs or something? [01:53] at least on the kernel my laptop is running it required loading a module [01:53] cat /proc/filesystems | grep xfs [01:53] xfs [01:53] that's after sudo modprobe xfs [01:54] (please forgive the abuse of cat, I ran cat /proc/filesystems first just to see what it supported; I hadn't looked in ages :) [01:56] hmmmm, I'm trying to unpack what you're saying [01:56] did the cat search supported filesystems? [01:59] and is loading the module to support xfs as simple as an apt-get add? [02:03] it should just be sudo modprobe xfs [02:03] if that doesn't load it, then yeah, an apt-get install will be required :) [02:04] I'm not sure what modprobe normally would do, but it didn't print anything on that command [02:04] /proc/filesystems shows the filesystems that the kernel currently knows how to mount -- others may require loading modules, as it did for me to load xfs [02:04] usual unix rules, it shuoldn't print anything if it succeeds :) [02:05] hmm, ran modprobe, still failing the mounting [02:05] and then starting in emegency mode, although I don't know what emergency mode does [02:05] modprobe only affects the current boot [02:05] if you've rebooted then it's unloaded [02:06] hmmm, so how would I force the process to mount the disk again after running modprobe [02:08] I'd just try mount /path/to/device /path/to/mount/point and see if that works [02:08] if it works, then figure out how to get the boot process to mount it, if that's what you want, and if it doesn't work, then start debugging that :) [02:10] ah, I see what you're saying [02:10] so I ran the exact same command that failed on boot, and it failed after I had run modprobe [02:11] how did it fail? [02:15] same error as when booting: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error. [02:16] is there anything more useful in dmesg? [02:16] I don't even know what dmesg is [02:17] dmesg dumps the kernel's message buffer [02:17] it's INSANELY wonderful [02:17] get to know this one :) [02:19] oh boy, lots of info [02:20] I'm digressing a lot, but something that drives me nuts is how history doesn't seem to always save, and gets truncated [02:20] is there a way to make history unlimited and save more often somehow? [02:20] I'm trying to remember the commands I used to mount the volume after I was wrestling with some accounts, and it lost history [02:23] so... history is involved. [02:24] you can configure a HGUE amount of aspects of it; man bash, search for HIST and histappend [02:24] running multiple shells at once tends to be the usual cause of "lost" command [02:26] there are external tools you can use too, to try to store history across sessions / computers / etc .. I don't use this myself, but it *looks* neat, you know? :) [02:38] yeah maybe that was a bad assumption, that it would work across sessions [02:38] I assumed it was user based [02:41] each shell maintains its own in-memory history of executed commands [02:41] and at exit will either overwrite the history file, or append to the history file [02:42] yeah, and I just want the "no matter where you're session originated, if you use the same user save any command to history, forever" [02:43] that can be done :) [02:43] I've got all sorts of problems with this upgrade though. I can't connect via ssh anymore, the fs isn't mounting correctly, I guess that's all my problems for now [02:43] history thing has been a long ongoing problem === cpaelzer__ is now known as cpaelzer [13:48] Maxel, try adding this to bashrc: "export PROMPT_COMMAND='history -a'" [13:48] that will flush your history to file every command [14:44] cpaelzer: https://pastebin.ubuntu.com/p/xG2VTmDb7j/ [14:45] cpaelzer: not a problem from an SRU review perspective, but seems odd from a git-ubuntu workflow perspective. [14:53] rbasak: that is the first time we used git ubutnu for that - formerly was pull-lp-source [14:53] interestign [15:31] cpaelzer: ah. It's because the watch file uses bz2 [15:32] So therefore uscan does [15:38] ah ok, the confusion makes snese now [15:38] even "sense" [16:33] we are using setfacl to give the splunk user access to read logs in /var/log, but what we have noticed is that it is also changing the group permissions of the file. is there a way to run it so it doesn't touch the group permissions? [16:37] theGoat: is the filesystem mounted with noacl? [16:37] no i don't believe so [16:37] i would have to reach out to one of the system owners [16:40] I did this on an 18.04 LTS and got the results I expected: setfacl -m u:root:w _z.jpg [16:41] what's the preferred way to pass env variables to a systemd service file ? [16:44] strk: /etc/init/foo.conf is NOT a systemd service file, it's an upstart service... uh, thingy [16:45] uh [16:45] disclaimer: srtk was accidentally asking about their "how to pass http_proxy env.var. to a service" trusty issue in #debian [16:46] we had zero clue and less interest in that, but figured someone in here might remember enough about upstart [16:46] isn't that the "env" directive? [16:47] strk: see! That's what happens when you ask in the right place. Answers. [16:47] strk: yes, that's env: http://upstart.ubuntu.com/cookbook/#env [16:49] strk: you may or may not want to put that in a .override file (/etc/init/foo.override, see http://upstart.ubuntu.com/cookbook/#override-files) [16:50] how about: service localstack restart http_proxy=xxxx ? [16:51] is that expected to work ? [16:51] strk, fyi, trusty won't be supported much longer, unless you're paying [16:52] and if you're paying? [16:52] will repos be moved somewhere behind a username and password? [16:52] updates will be hosted on a ppa [16:53] I think the archives will be left alone [16:53] but still available to anyone? [16:53] strk: no that won't work, see http://upstart.ubuntu.com/cookbook/#job-environment [16:54] looking at Debian ELTS, paid support but the repo is free to use if you need fixes for a package that someone else is paying support for. [16:54] jelly, the archives stay up for a while, yes, but without updates [16:55] lordcirth: will the updates be hidden behind username and password or some other auth? [16:55] I didn't understand the documentation about `env`, nor I see a clear reference about job-environment in the #job-environment url [16:55] I'm probably too tired [16:55] jelly: in https://www.ubuntu.com/esm#faq: "ESM is just a regular Ubuntu archive, but authenticated and served over HTTPS." [16:56] !esm | jelly [16:56] jelly: Canonical offers paid extended security support for end-of-life LTS releases through the Ubuntu Advantage program. For more information, see https://ubuntu.com/esm . ESM is not an Ubuntu community offering; please direct questions about it to Canonical directly. [16:57] strk: in your case, you'd probably want to use this: echo 'env "http_proxy=xxxx"' >> /etc/init/localstack.override [16:58] strk: because otherwise, the job's environment is really minimal (only TERM and PATH) [17:01] uh... why would the service manager define TERM [17:01] wait, don't answer, I'm fine not knowing any more about upstart now that it lives only in EL6 [17:02] (and trusty) [17:03] thanks for the faq! [17:04] no no I'm curious about this, what *does* it default to? :) [17:04] sorry, -ENOTRUSTY [17:07] http://upstart.ubuntu.com/cookbook/#mountall-examples suggests "TERM=linux" [17:09] TERM=linux is in a huge pile of expected test results too [17:09] https://sources.debian.org/src/upstart/1.11-5/ChangeLog/#L10626 [17:15] sdeziel: but in that case It'll stay, while my goal is to NOT store the proxy info in a static place [19:47] where do I report a subiquity installer bug again? [19:49] bugs.launchpad.net/subiquity iirc [19:49] hm, no [19:50] https://bugs.launchpad.net/subiquity/+filebug <-- there teward [19:50] ahasenack: that's what I thought i just filed my bug [19:50] nasty little search domain ERRORCRASH cases [19:50] cool [19:56] I am having problems with setting up two factor authentication for SSH using pam_google_authenticator.so. I am using a fresh install of Ubuntu LTS 18.4 and can’t seem to get PAM to work well with SSH. The minute I systemctrl reload ssh.service the SSH login prompt looks different and fails regardless of input. Been using this [19:56] https://www.google.com/amp/s/www.linuxbabe.com/ubuntu/two-factor-authentication-ssh-key-ubuntu-18-04/amp I have gone over the steps multiple times. Any suggestions? [19:57] the_actor, anything useful in 'journalctl --unit ssh', 'less /var/log/auth.log', or 'less /var/log/syslog'? [20:01] I have not checked. I have rolled back the image multiple times to a base 18.4 install. I am thinking there is some thing I don’t understand regarding how pam and or ssh work or some minor difference in the way the config files are written. The only other thing is perhaps I need to generate a key, which is something I am trying to replace with a password and a google auth token. [20:02] I have not done this, so I don't know, but "check the logs" is usually a good place to start. [20:03] And I’m not even sure that it is a good idea, because I have read in the SSH official documentation that they prefer password based login as opposed to public key. I’m wondering how secure that actually is without some kind of pre-shared key or certificate being done over the cloud. So the Google authentication token seems like a good idea. Unless I am foolishly misguided. [20:04] I invite any input. [20:06] the_actor, where did you see that passwords are preferred to keys? [20:06] The most important thing is, in its default state, once the user manual he authenticates the fingerprints, is every subsequent initial connection after that initiated with the protection of encryption? [20:07] Hold on let me see if I can locate the article. [20:07] the_actor, with default ssh configs? Yes, everything is encrypted, and once the user accepts the host's key, any server without that key will be unable to impersonate or read the connection. [20:11] It was on ssh.com in one of their articles. I can not locate the exact one now. They were weighing out the pros and cons of key-based authentication password-based authentication and Certificate based authentication [20:13] lordcirth: what is your opinion on a simple password, and a google one time use authentication token? [20:13] the_actor: ssh.com != openssh [20:13] the_actor, depends, how much do you trust Google? :P [20:13] the_actor: if you don't want TOTP specifically, you can easily do pubkey+Unix password auth with OpenSSH [20:13] lordcirth: interesting point [20:13] Google Authenticator is proprietary now, which is a red flag. [20:14] But I think you can do similar things with open source apps and self-hosting. [20:16] sdeziel: Good point. Just thought adding it to my google auth app would be easier. [20:17] lordcirth: Thanks for the warning, I thought it was open source. [20:17] the_actor, it was, and then it wasn't. I think f-droid still has an old copy, but I wouldn't start using it if you aren't already. [20:17] And yeah, pubkey + password means you need your device + your brain, which is pretty decent. [20:20] lordcirth: Thanks, to confirm. Even though I do not have any security cert on my server, with the default config once the ssh keys are accepted on initial connect then in subsequent connects my password is not sent in clear text over the cloud? [20:20] the_actor, ssh will never send a password over cleartext. It will never send data over cleartext unless you pass some very specific and obvious options. [20:22] lordcirth: Ok, so then the safest bet would be to confirm the keys on first connect on the local net? [20:23] the_actor, the main vulnerability here is that an attacker pulls a MITM attack on your first connection, you accept their host key, and they continue to MITM you. If you need to avoid this, copy the host key over yourself in some trusted manner [20:23] Or just view the host key fingerprint on the server and compare visually, I guess [20:24] lordcirth: Cool man. You helped me a lot. [20:24] Thanks guys [20:24] np [20:54] Hmm, how might I blacklist libraries from being loaded while trying to run an executable? Trying to run a self-compiled version of `sqlite3` and it's failing on "header and source version mismatch" and I'm presuming (perhaps incorrectly!) that this is due to the sqlite3 libraries already installed on the system. [20:56] keithzg[m], prepend your custom lib dir to LD_LIBRARY_PATH [22:08] Hello. I am unable to use iscsi in initramfs properly - specifically, the internet connection is not established. This bug I am having since 18.10. It all works in 18.04. [22:08] so what I did was install open-iscsi, then echo "iscsi" >> /etc/initramfs-tools/modules, echo "ISCSI_AUTO=true" > /etc/iscsi/iscsi.initramfs and update-initramfs -u. To see if it all works, I made a keyscript with curl example.com and disabled quiet splash. In 18.10 (and 19.04) connection details do not appear like in 18.04 (signaling that there is an issue) and example.com cannot be resolved then. How do I fix this issue [22:27] lordcirth: Oh, I don't know why that didn't occur to me! Although, that doesn't seem to actually change anything; I still get "SQLite header and source version mismatch" (then the two disparate entries corresponding to the `#define SQLITE_SOURCE_ID` lines in `sqlite3.h` presumably; certainly the one corresponds to that in my local copy of `sqlite3.h`. Hmmm. [22:52] teward: thanks for the bug, i think that one is fixed in the current subiquity release [22:52] but i should check i guess [23:47] folks, why is it that on dhcp setup in initramfs I get a line 8 error 8.8.4.4 not found? My line 8 is IPV4DNS0=8.8.8.8 8.8.4.4 [ISP DNS] [23:49] try just one ip