-
s2r
scoobybejesus Does those user have a local home directory?
-
s2r
rwp I wanted to pull a backup from a server to store a copy in a remote location.
-
rennj
3-2-1 backups, offsite for the nuclear attack.
-
scoobybejesus
s2r yes, there needs to be a home folder with a .ssh directory with an authorized_keys file
-
s2r
scoobybejesus where do you limit access to certain scripts? Because in the case for directory just adding that user to a group would be enough.
-
scoobybejesus
well, for example, my script user can login and is only able to run a single command, which runs a single script. That script launches all the other scripts.
-
scoobybejesus
in authorized_keys, you provide the command that the holder of the ssh key can run. and upon login, that command runs, and that's it
-
scoobybejesus
or for the scp user, they don't get a terminal at all with no-pty
-
scoobybejesus
ah, i also made it so the script needed root privs, and i allowed the script user to be run with sudo w/out password specifically for that script
-
rwp
There are many different ways to solve this same problem. Can do it one way. Can do it another way. Lots of possible ways to do it.
-
rennj
adic/storagetek/quantum robot tape library. veritas netbackup media cluster. lto won the tape wars. sdlt vs lto. the last fight.
-
rennj
sony ait 4mm i liked cause it was small.
-
rennj
The latest generation as of 2021, LTO-9, can hold 18 TB in one cartridge.
-
rennj
crazy
-
rennj
-
rennj
New for LTO-3 was write once read many (WORM) capability. worm drive.
-
rennj
auditing
-
rennj
-
polyex
kubernetes run on freebsd?
-
nerozero
fyi CVE-2024-6387 FreeBSD is effected
-
nerozero
-
nerozero
SSH - Remote root login
-
polyex
really?
-
polyex
that's bad
-
polyex
so every freebsd box in the world can be hacked right now?
-
nedko
i read in the original blog about 700'000 servers in internet and 31%, that is really bad
-
nerozero
Not straight away, this is async remote call issue, this is not 100% guarantee you can do that, there is a chance, and to explioit this it might take ~10 days ...
-
polyex
if pf blocks ssh it's safe? because i restrict ssh login by ip
-
Dooshki
wasn't a patch released for it yesterday?
-
Dooshki
Or is the patch incomplete?
-
weust
AllanJude: I thought ZFS RAIDZ expansion was to be added in 14.0. Am I wrong?
-
nerozero
just set "LoginGraceTime 0" in the /etc/ssh/sshd_config file
-
weust
And don't open SSH to the internet
-
Dooshki
Oh, I see now, that bug report is for sshd distributed as part of the ports tree
-
nerozero
weust, lol
-
nerozero
that was epic :D
-
ridcully
weust: regarding raidz exp: i asked this a while ago and was told here, that it's in 15
-
weust
ridcully: ah, crap. thanks
-
polyex
anyone else see a problem that kubernetes is getting huge but doesn't run on freebsd?
-
polyex
i'm afraid freebsd's tech is good but it's getting left behind and dying off
-
weust
I really liked this part of the post by OpenSSH: "Systems that lack ASLR or users of downstream Linux distributions that have modified OpenSSH to disable per-connection ASLR re-randomisation (yes - this is a thing, no - we don't understand why) may potentially have an easier path to exploitation."
-
polyex
ya see linux is a shitpile yet waaaay more popular than freebsd
-
polyex
so we're obviously doing something wrong
-
Dooshki
Well, Linux has the advantage of not having been emproiled in a huge lawsuit in the 90s
-
Dooshki
that really put a hamper on the adoption of BSD
-
polyex
agree but that was 20 years ago and we shoulda recovered by now
-
polyex
instead we've lost market share
-
Dooshki
"market share" implies paying customers
-
polyex
pretty often i run into ppl who left freebsd to use linux because it got the momentum
-
polyex
not just that but sure
-
polyex
if you look at modern server oriented software, it always runs on linux, but not always on freebsd
-
weust
And a lot of python project, like homeassistant, pretty much only runs on Linux. Can't even compile it anymore.
-
polyex
ya that's what i'm saying. it's biting me enough that i'm getting worried about my bet on freebsd
-
entrop
it's ok to use both
-
polyex
if i gotta learn linux, why bother keep using freebsd?
-
entrop
well, learning linux is a repetitive thing, each time you upgrade ubuntu, you need to learn how to set a static ip address in yet another new way. in freebsd you just need to learn that once.
-
weust
^that
-
polyex
k well we already covered that freebsd is better, but that doesn't matter when we start running into too many cases of "linux supported, freebsd not"
-
weust
I am only a home user, but to me GNU/Linux is a big clusterf*ck, and only use it when I can't use FreeBSD, or it's a appliance type thing I can't avoid myself.
-
AllanJude
weust: it landed in upstream zfs, so 15-current has it, but not 14.0
-
weust
AllanJude: And no backport to 14.2 by any chance?
-
AllanJude
that depends on the timing of OpenZFS 2.3's release
-
weust
OK
-
CyberCr33p
hello
-
CyberCr33p
regarding the openssh security issue, is it possible to do: 1) gitup release 2) cd /usr/src/secure/lib/libssh 3) make all 4) make install 5) service sshd restart . Will this patch the issue?
-
|cos|
CyberCr33p: Assuming you've aware freebsd-update would generally be the easiest path to take?
-
CyberCr33p
|cos| I use /usr/src for upgrading my systems
-
|cos|
CyberCr33p: I would research it more closely if not being able to use freebsd-update. My **guess** is that secure/usr.sbin/sshd sounds more relevant than secure/lib/libssh, but I have no actual idea.
-
CyberCr33p
I think you are right. Before I had "Server Version OpenSSH_9.6 FreeBSD-20240104" now I have "Server Version OpenSSH_9.6 FreeBSD-20240701"
-
Dooshki
The safest way to figure out is probably to do a git update and to see which files are updated
-
CyberCr33p
* /usr/src/crypto/openssh/log.c
-
CyberCr33p
* /usr/src/crypto/openssh/version.h
-
CyberCr33p
* /usr/src/sys/conf/newvers.sh
-
llua
why do you upgrade your system in a way you don't understand?
-
CyberCr33p
llua I understand how to do a full upgrade. Now I want to patch just this issue and tomorrow I will do a full upgrade.
-
ketas
just in case it gets owned in 24h?
-
ketas
but yeah that's how you do it
-
CyberCr33p
ketas yes exactly
-
ketas
i heard it's kind of hard to craft that thing up but building sshd is fast anyway
-
ketas
damn pkgbase comes useful here :p
-
CyberCr33p
I use sshguard to block SSH brute force attacks, but I'm unsure if it protects against the specific vulnerability mentioned. It also blocks connections that idle, this might offer some level of protection.
-
|cos|
CyberCr33p: The known working mitigation is `LoginGraceTime 0`. Search for that config in
freebsd.org/security/advisories/FreeBSD-SA-24:04.openssh.asc
-
CyberCr33p
I know but if I do this then maybe I can't login to the servers again if many bots try to brute force
-
leah2
ketas: i had to wait until today until pkgbase actually had the package... i wonder how often the mirrors are synced?
-
dkeav
spiped should mitigate as well
-
dkeav
i would think
-
leah2
running with -e mitigates too :p
-
ketas
one could also fw the ssh
-
ketas
leah2: i more meant you can do it on your own and get it faster
-
ketas
unsure why security can't be prioritized or so?
-
kevans
dkeav: yes
-
kevans
colin wrote a thing about it years ago, and it's still what he uses:
daemonology.net/blog/2012-08-30-protecting-sshd-using-spiped.html
-
kevans
-
dkeav
yup
-
dkeav
after the whole xz attempt and things like this, spiped seems like a good idea
-
ketas
that's almost as complex as running whole vpn
-
ketas
ovpn with tls auth with ssh behind it is one hell of a security onion already, if one wished, one could put layers of different oses and other stuff into path too, just can't really imagine a lot of places where it actually benefits
-
dkeav
i dunno, seems more complex than it really is, I think I set it up the first time in about 5 minutes
-
leah2
ketas: can one easily build a single package as pkgbase?
-
ant-x
Hello, all. I beg yoour pardon for a potentially lamer question, so feel free to kick me for it. I am away form my computer with FreeBSD, but need to find the QEmu version in its standard .pkg . Is it possible?
-
dkeav
-
ant-x
dkeav, QEmu, right, but it is a port, whereas I installed it via `pkg'.,
-
ant-x
As I understand, ports are usually ahead of packages, right?
-
dkeav
look at the quarterly
-
dkeav
in the packages section
-
kevans
ant-x: ports are constantly being built into packages from the two branches as often as they can, so packages shouldn't lag behind that much but you're probably tracking quarterly rather than latest
-
ant-x
dkeav, OK, thanks.
-
ant-x
kevans, I must be, using FreeBSD 14.1 with default pkg config.
-
kevans
yeah
-
wcarson
is there a public url/xml/json document showing the latest patch level? e.g. right now something i could query and get back '14.1-RELEASE-p2'?
-
adonis
I previously installed world/lib32 but now want to get rid of it, how do I go about that? I am trying to install FreeBSD 14.1 now.
-
adonis
The kernel/generic-dbg component seems to also be installed but not sure what the proper procedure to remove that is either.
-
rwp
That's one of those open-questions that I have too. It's a "component" that is installed. But not sure how to remove it.
-
adonis
rwp: yea.. I figured if it was easy to install it'd be easy to uninstall. but doesn't seem to be the case.
-
wcarson
hah, yeah, had the same issue and basically the answers i found via google were "you can't, so you may as well keep it updated"
-
wcarson
that said, i imagine you could look at the .tbzs or whatever from netinstall and see where they extract, and then clean those directories/files out, but seems fairly manual and prone to error
-
rwp
I am sure it is easy if one knows what it was done to "install" it. AFAIK there is just some entry in a file saying that it is installed.
-
wcarson
alternatively, you could look at the freebsd-update source code to see where it's checking, and you know, go there and clean it out
-
wcarson
yeah
-
rwp
Removing components from /etc/freebsd-update.conf is not sufficient. I already tried that and it still insisted to do it.
-
wcarson
same
-
rwp
I have crawled through the script before and it isn't bad. It just took more time than I had at the moment and I postponed getting to the bottom of it.
-
wcarson
rwp: so, that crucial drive has been going rock solid for like two weeks now...
-
wcarson
for sure, it's totally a time vs how much do i actually care about this type of thing
-
rwp
It's also possible to do two installs to two test areas, one with and one without, and then compare what is different between them. That would tell.
-
rwp
Good about the Crucial! I wonder what the details of the WD failure really are there. It's a scary problem actually.
-
wcarson
yeah, it is. i really liked the WD, too, because it's supposed to be low power :/
-
adonis
wcarson: yea, looking at what was installed and then manually undoing that seems like it would take a bit of time and prone to errors; so stick with what is already installed is what I'll continue doing :( lol..
-
polyex
where can i read up on what big features are coming in freebsd 15? i know it's probably 2 years away i'm jc
-
adonis
what would cause vi and many expected utilities to be "not found" when booting into single user mode. my user is root.
-
adonis
`which`, `vi`, `env` none of those work
-
jgh
PATH not set right, or filesystems where they live not mounted
-
adonis
path looks good.. I think it has to do with my /usr not being mounted
-
adonis
yup that was it.. mount -a fixes it