-
nero
how would i sensibly restrict an ssh user to 4-5 specific commands like sftp and rsync?
-
nero
some programs might still have some escape hatch, on linux i have some hacked-together namespacing program that maps everything out
-
bjornn
i'm running xfce and i cant figure out how to do privilege escalation
-
bjornn
like running gui apps that require sudo to change stuff
-
bjornn
or mounting drives in thunar and stuff like that
-
nero
has someone used jails to restrict ssh users?
-
meena
nero: what's your current approach?
-
jkc
The jail would have to contain everything that the ssh user would need on a functional system.
-
nero
meena: a self-written Linux-specific program that creates a chroot with some static binaries in it
-
nero
but its Linux, and i want a similar thing on FreeBSD so i can have the full ZFS experience
-
llua
i like how both of the commands have shell escapes to run other commands
-
meena
nero: you could do the same with FreeBSD, or you could create jails that only have specific commands
-
nero
meena: i'd be happy if someone has seen prior work
-
nero
im 90% confident both Hetzner Storage and rsync.net have such a thing already
-
meena
nero: check the wiki, search the web, i have to goto bed.
-
nero
good night
-
meena
i should've gone to bed 2 hours ago
-
vxwarlock
$ipfw -q pipe 1 config bw 2800Kbits/s queue 10Kbytes Is there a queue limit used for this command?
-
damarusama
on a fresh installed I did a pkg clean -a && pkg upgrade -f, now I get a ld-elf.so.1: Shared object "libssl.so.111" not found, required by "pkg"
-
bapt
derzahl: pkg bootstrap -f
-
bapt
grmbl
-
bapt
damarusama: pkg bootstrap -f
-
bapt
you did make delete-old-libs before you did pkg upgrade
-
damarusama
no
-
damarusama
should I ?
-
damarusama
the pkg bootstrap -f re-installed the pkg package, but the same libssl.so.111 still comes back
-
damarusama
this is on freebsd14 armv6
-
vxwarlock
docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig > section To build a file which contains all available options, run the following command as root: || Updating LINT but empty where is the all options ?
-
VimDiesel
Title: Chapter 10. Configuring the FreeBSD Kernel | FreeBSD Documentation Portal
-
vxwarlock
and doesn't see arch so I'm checking from within amd64 directory.
-
meena
vxwarlock: what are you trying to do/learn?
-
vxwarlock
he meena > I want to compile kernel about IPFW feature and I wanted to see all available options and device list. It used to write in lint, but now it doesn't. I guess I can't.
-
vxwarlock
sorry hi meena
-
vxwarlock
How can I access the full list of supported options when compiling the kernel?
-
yuripv
vxwarlock: sys/conf/NOTES + sys/<arch>/conf/NOTES
-
yuripv
(and for i386/amd64, sys/x86/conf/NOTES, it seems)
-
yuripv
the documentation needs updating, yes
-
vxwarlock
yuripv I found it ın .usr.src.sys.conf.NOTES inside
-
vxwarlock
thanks for helping
-
checkpoint
previously it was sys/conf/LINT
-
parv
vxwarlock, Does you IRC client do some "odd" thing if you were to use "/" instead of "." in ".usr.src.sys.conf.NOTES"?
-
checkpoint
/sys
-
checkpoint
my does not :)
-
parv
In any case, it's time for me to go ...
-
vxwarlock
parv > my mistake I wrote that wrong . /
-
Demosthenex
classic irc clients use /commands, but only on the first word
-
checkpoint
ircII seem which does not support /commands:
-
checkpoint
*** Unknown command: COMMANDS
-
CmdLnKid
no kiddin
-
CmdLnKid
you'll need a script ... or a diff irc client
-
CmdLnKid
there are a few famous ones out there but you'll need some google foo
-
» checkpoint is using TinyIRC script
-
CmdLnKid
think LiCe5 is what i was thinking of
-
CmdLnKid
if your heart is in scripting out ircii ... then thats for you
-
CmdLnKid
otherwise ... irssi
-
CmdLnKid
-
VimDiesel
Title: Dropbox Capture
-
Plasmoduck
checkpoint, try good old BitchX
-
Plasmoduck
Also, Catgirl is a very nice, simple text based IRC client.
-
meena
"Screenshot: imagine, if you will, text on a screen, next to names in a selection of colours."
-
meena
hah
-
CmdLnKid
and thats when they are turned into beef
-
Dereckson
Plasmoduck some years you don't have port for it
-
Dereckson
bitchx-1.2.1_3,1 Feature-rich scriptable IRC client
-
Dereckson
actually we've o/
-
Dereckson
ircii-20210314 Small and high extensible IRC client
-
Dereckson
and ircII too
-
» CmdLnKid hands meena a large trout
-
CmdLnKid
do with it what you will
-
meena
i could cook dinner with it, but then I'd still need to cook another dinner for my daughter.
-
CmdLnKid
splurge
-
CmdLnKid
be sure to slap a few nicks with it first. have to make sure its tender
-
meena
good idea
-
» CmdLnKid puts on fish slap helmet just in case ;)
-
Plasmoduck
-
VimDiesel
Title: FreshPorts -- irc/catgirl: TLS-only terminal IRC client
-
CmdLnKid
tls only
-
CmdLnKid
sheesh! talk about limitations
-
Plasmoduck
Yes, why would you not use tls?
-
meena
good luck connecting to EFnet
-
CmdLnKid
nothing wrong with that but why not include connecting to everything but a switch to enforce tls or quit thats in your control
-
CmdLnKid
seems pointless to exclude valid connections
-
CmdLnKid
not really freebsd philosify
-
CmdLnKid
however you spell that
-
CmdLnKid
take a irc standard and exclude half the internet of irc makes sense
-
jkc
CmdLnKid: Doesn't sound like freebsd philosophy to be so condescending, either.
-
» CmdLnKid slaps plasmoduck with a large trout and finally gives it to meena
-
CmdLnKid
yeah thanks for the correction
-
jkc
You're welcome, for both the spelling and attitude correction. :)
-
CmdLnKid
sorry im not very limitation friendly
-
jkc
It's not a freebsd-imposed limitation. If the user wants their system to have limited functionality, that's their choice, and it's a valid one.
-
jkc
I can see lots of cases where I don't want my system to even be capable of unencrypted connections.
-
CmdLnKid
thats so easy to do tho. firewalls are a blessing
-
CmdLnKid
and yes i know ... you can connect to a ssl/tls port on a non-encrypted connection
-
jkc
Exactly.
-
jkc
Or an unassigned alternate port.
-
CmdLnKid
right
-
jkc
So, again, you're tending toward condescending, here.
-
CmdLnKid
yeah i guess so. stepping down
-
jkc
The way that YOU would solve a problem isn't necessarily the best way, for you or anyone else.
-
CmdLnKid
frickin pitt. thanks for the ladder
-
CueXXIII
even ssh has a none cipher, ie. unencrypted. but you would have to compile ssh yourself on both sides, and i don't know if you are limited to ssh1 protocol.
-
CueXXIII
if you want to shoot yourself in the foot, it's all there
-
CmdLnKid
isn't none disabled by default now
-
CueXXIII
that's why you have to compile it
-
CmdLnKid
thats what i figured
-
jauntyd
-
VimDiesel
Title: Automation and Hacking Your FreeBSD CLI
-
rtprio
you know, i love those sorts of things
-
rtprio
my problem is, then it's missing when i have to use a linux or some older system
-
Onepamopa
Okay guys... got a weird issue here. A server running 13-stable decided to just stop doing networking. No DDoS, no nothing, and nothing in the messages log to indicate an issue. Any ideas on how to figure out what actually caused this?
-
VVD
Onepamopa, ifconfig down/up helped?
-
Onepamopa
I connected via IPMI, didn't perform ifconfig down/up. But from what I see the server did loose link prior to me connecting to it via ipmi
-
Onepamopa
Aug 23 19:39:13 server kernel: [8038990] ix0: link state changed to DOWN
-
Onepamopa
Aug 23 19:39:16 server kernel: [8038994] ix0: link state changed to UP
-
Onepamopa
that wasn't my doing, I've rebooted it and it works but... can't figure out what caused it.
-
Onepamopa
There's basically nothing in all of the logs to indicate an issue.
-
Onepamopa
tried ping/telnet - no route to host
-
Onepamopa
since it's in production I didn't waste much time - did a quick reboot expecting to find something/anything in the logs, but nada..
-
yuripv
driver issue probably
-
debdrup
Why guess, when there's no way to know?
-
debdrup
Could just as well be gremlins in the server room.
-
BarnabasDK
Onepamopa, could be something as simple as the cable
-
Demosthenex
i have an ubuntu jail, and i'm trying to launch dbus, it never happens. could this be a raw socket or securitylevel issue for the jail?
-
meena
Demosthenex: what do the logs say?
-
Demosthenex
meena: the native host syslog has nothing useful, and dbus-daemon just says failed
-
Demosthenex
dbus-daemon[16932]: Failed to start message bus: Failed to bind socket "/tmp/dbus-wrELFCL9y4": No such file or directory
-
Demosthenex
i see errors in messages when i login, and when i logout, about clear console and such, but no messages when i run dbus
-
meena
what Filesystem is /tmp?
-
Demosthenex
nice catch, it's using the main host /tmp
-
Demosthenex
let me make that tmpfs
-
Demosthenex
ok, now its tmpfs with good perms, i can touch files in the linux jail in /tmp
-
Demosthenex
same message about bind socket
-
zeyu
Hi all, I'm wondering about the uefi boot process (13.2R/amd64). /boot/efi/efi/boot/bootx64.efi and /boot/efi/efi/freebsd/loader.efi are the same, but these files are different than any of /boot/*.efi. Does /boot/efi/efi/boot/bootx64.efi chain load any of these other loader*s?
-
kenrap
zeyu: The /boot/efi/efi/boot/bootx64.efi file is used for the UEFI firmware's standard search for an OS loader file, if no other UEFI entry exists in the firmware's boot manager.
-
kenrap
The /boot/efi/efi/freebsd/loader.efi used by FreeBSD from using efibootmgr to make an actually boot manager entry dedicated to it.
-
kenrap
You can read more about this using `man 8 efi` and scroll down to the line "The UEFI boot process proceeds as follows:"
-
zeyu
That manual section is what inspired me to ask. I'm thinking in a default setup: the efi firmware loads the efi application (loader.efi) which the system has installed to /boot/efi/efi/boot/bootx64.efi. bootx64.efi (a copy of /boot/efi/efi/freebsd/loader.efi) loads /boot/boot.config if available, and then loads loader.conf, and then loads the
-
zeyu
kernel? What are all the other efi applications in the /boot directory?
-
zeyu
Of particular interest, /boot/boot1.efi. The manual page makes no mention of any uefi analogue to bootblocks. The manual page reads as if bootx64.efi is a single stage (efi>bootx64.efi>kernel), as opposed to traditional freebsd bios>boot0>boot1>boot2>loader>kernel
-
kenrap
I suppose you can use efibootmgr to change the boot order so that the entry "UEFI OS" or whatever your motherboard's firmware calls it is the first one at Boot0000
-
zeyu
I don't want to change the order, I just want to understand what's going on in the default installation.