-
rennj
smartos should be using a neural network to tell me the commands i should be using...haha
-
rennj
all the chatGPT goodness
-
rennj
nn trained on smartos/ora/sunw sunsolve data
-
rennj
usenet sunfaq
-
rennj
chatGPT give me a cover letter in charles bukowski style...focus in on the sun sparc...haha
-
EasyNT
Hi everybody, I’m looking for a way to disable IPv6 in a LX branded zone…was not lucky so far. Has anybody a solution?
-
nbjoerg
EasyNT: what do you mean with disable ipv6?
-
EasyNT
I have a IPv6 address on the nic which in my case should not be
-
nbjoerg
link-local one?
-
EasyNT
inet6 fe80::d0c1:ffff:fe2f:ab1b prefixlen 10 scopeid 0x20<link>
-
nbjoerg
yeah
-
nbjoerg
why is that a problem?
-
EasyNT
I have no IPv6 on my network, I’m trying to setup Mastodon and the setup script calls some yarn stuff which tries to reach hosts with IPv6 addresses which fails
-
nbjoerg
red hering
-
nbjoerg
I bet this is the npm is too stupid to do multiple dns records crap all over again
-
EasyNT
possible
-
EasyNT
but I guess if I could disable IPv6 on the system, the problem would be obsolete
-
nbjoerg
no, it doesn't
-
nbjoerg
the problem is literally that npm gets multiple entries from getaddrinfo and craps out with the fallback to the next entry
-
EasyNT
hmm…so then I should make it clear to npm/yarn to not use IPv6
-
nbjoerg
it has nothing to do with ipv6
-
EasyNT
so what should I do?
-
nbjoerg
but unreachable addresses returned via DNS
-
EasyNT
I read somewhere that yarn has hardcoded IPv6 addresses…not sure though
-
nbjoerg
for an lx zone, you can try gai.conf
-
EasyNT
looks interesting
-
EasyNT
uncomment this?
-
EasyNT
52 # For sites which prefer IPv4 connections change the last line to
-
EasyNT
53 #
-
EasyNT
54 #precedence ::ffff:0:0/96 100
-
nbjoerg
yeah
-
EasyNT
and then reboot I guess
-
EasyNT
nbjoerg: you are my personal hero of the day :D
-
EasyNT
thanks so much!!
-
nbjoerg
someone without ipv6 should beat the shit out of npm :)
-
nbjoerg
I mean fix the problem
-
EasyNT
:D
-
psarria_
hi guys, i hope you can help me, i have a very big security problem with all my LX branded systems (it doesn't happens with native zones), my system users seem are limited to 16 system groups when the GZ, and NGZ have NGROUPS_MAX set to 1024 not to 16
-
psarria_
i tried to use the binaries of /native when possible in order to avoid this problem but without success, honestly i don't know what to do to solve this
-
psarria_
I would appreciate any help
-
jzu_
-
danmcd
I just read this now. Having the vmcore.0 might be nice.
-
huy
hello, how do I use mount -F smbfs -o noprompt=true? I get login failed: syserr = authentication failed with sharemgr set -P smb -s /public -p guestok=true smb
-
danmcd
This is an SMB/CIFS authentication problem.
-
huy
Indeed, do I need to use idmap?
-
jbk
idmap is more for serving smb
-
jbk
if you're trying to mount an SMB share
-
jbk
you might need a .nsmbrc (IIRC) file for credentials if you don't want to supply them in the mount arguments
-
jbk
(and whatever is sharing the filesystem requires a login)
-
huy
I'm trying to make a public share accessible to anyone without authentication and to mount it from a native zone, maybe I'm missing some steps
-
huy
^^ from another zone
-
jbk
is it being served from an LX zone or a VM?
-
huy
native zone
-
jbk
i think you can add 'guestok=true' to the sharesmb options to allow anonymous access
-
jbk
if you want to share a dataset between multiple zones on the same box, you can also loopback mount the dataset in all the zones as another possibility
-
jbk
(just need to be sure uid/gids match)
-
huy
that's what I did, and I get login failed: syserr = authentication failed
-
huy
I want to use the share with the outside world too
-
jperkin
twitter.com/jperkin/status/1371780238586351616 is what I needed to do to get guestok working
-
nahamu
any chance you tooted that too?
-
nahamu
oh, from 2021. haha
-
jperkin
yeh not really sure what to do about that, retooting them seems wrong, but I also want to kill my twitter for obvious reasons
-
nahamu
fair.
-
nahamu
-
nahamu
saving it for later. :)
-
jperkin
nice, thanks
-
bahamat
psarria_: Do you mean that users are members of multiple groups? And that tops out at 16 groups?
-
nahamu
random thing I noticed, jperkin: in a trunk zone I was able to install wireguard-go but it didn't see a wireguard-tools package.
-
jperkin
oh, lemme look
-
jperkin
ah ok, so there's already a wireguard-tools package which ends up being chosen instead of the version in pkgsrc-extra, in 2021Q4 I disabled that package but I didn't do that in trunk
-
jperkin
2022Q4 even
-
bahamat
psarria_: I can reproduce this behavior...I'll look into it.
-
nahamu
this will all be much better if I just get my act together and get everything upstreamed, huh...
-
psarria
bahamat, yes, 16 is the maximum number of groups that a system user can belong to
-
psarria
bahamat, afaik NGROUPS_MAX is by default 16 but you can override that in /etc/system, even doing so, system users in LX branded zones are unable to do anything beyond of 16th group
-
psarria
bahamat, i can reproduce in bash:
pastebin.com/7RiJhNr6
-
psarria
if i use strace, i can see a getgroups syscall with 16 as array size:
pastebin.com/RRcEgU78
-
jbk
how are LX processes determining the max?
-
jbk
there is a sysconf parameter -- i don't know if LX returns a hard coded value or not (or if that's waht that program is using to determine the max)
-
psarria
jbk, there is a sysctl parameter that inherits GZ's NGROUPS_MAX value correctly but it's like getgroups syscall take a value (16) as maximum, you can see that here:
pastebin.com/E8Xd7uRW
-
bahamat
psarria: And you mean system users vs...what other kind of user?
-
psarria
ok, sorry, i wrote "system user" because as root i can see the groups the user belongs to, i mean users, perhaps it wasn't the best form to called them, sorry
-
bahamat
Yeah, doing `groups <user>` will show all the groups they're assigned to. But as any user, just `groups` will top out at 16.
-
psarria
right!
-
bahamat
psarria: So, how many groups are we talking about here?
-
psarria
273
-
pjustice
!!
-
psarria
i know, it's a high number but in this environment it should normal i think, it's the relation within websites groups and webserver apache group
-
pjustice
There have historically, iirc, been several places where a limit of 16 has existed. You're definitely out in poorly explored territory with that scale of group assignments.
-
bahamat
So, the limit of 16 on illumos is for NFS. NFS breaks badly when it's more than 16. But I think there's a hard coded cap at 32, even increasing it via /etc/system.
-
bahamat
And LX just uses whatever the illumos value is.
-
bahamat
Oracle documentation says it can go up to 1024, but I'm not sure which versions that applies to.
-
psarria
however, it works correctly under native zones
-
bahamat
How do you normally set it for native zones?
-
psarria
ok, i've tested under native zones only in lab, i mean it works when a user belongs to 20 groups, but i'm going to test with 300 right now
-
psarria
bahamat, yes, it works inside a native zone, i've attached an user to 300 groups,
pastebin.com/raw/Ch4RUarv
-
bahamat
That's not a valid test.
-
bahamat
You need to *be* the user and run just `groups`.
-
bahamat
Running `groups <name>` will look up the user database.
-
bahamat
But running `groups` will check the groups on the process itself.
-
psarria
-
bahamat
And to increase groups, how is it you're doing that? Are you just setting it in /etc/system in the ngz?
-
psarria
yes, i used this guide:
wiki.smartos.org/modifying-boot-files the part related to root pool because i don't use USB
-
psarria
in GZ
-
bahamat
Do you *also* set that in the ngz, or just for the gz?
-
psarria
only in GZ, this is only the line i've added:
pastebin.com/RYUZruYD
-
psarria
i set 1024 because is the maximun
-
bahamat
OK, well there's probably no short term answer.
-
Smithx10
@bahamat I already have a disk that spare took over spare-2 DEGRADED 0 0 0\n c3t5000CCA27077CE29d0 OFFLINE 0 0 0\n c3t5000CCA270ADF839d0 ONLINE 0 0 0
-
Smithx10
how do I just make the spare the new member, 29d0 was already taken out
-
bahamat
Smithx10: Ok, I'm missing context on this...I don't remember this conversation :-)
-
Smithx10
ahhh, disk went bad, spare took over, we powered down, found the serialnumber in slot 6 replaced it with new disk, powered back up
-
bahamat
Ok, so to promote the spare, IIRC it's `zpool replace zones <dead device> <spare device>`
-
bahamat
then your replacement device, you just add as a spare.
-
Smithx10
cannot replace c3t5000CCA27077CE29d0 with c3t5000CCA270ADF839d0: c3t5000CCA270ADF839d0 is busy, or device removal is in progress
-
Smithx10
Guessing because it is already online as the spare and resilvered?
-
Smithx10
-
Smithx10
-
psarria
bahamat, ok thanks for all, i'm going to migrate these systems to bhyve in order to avoid more security problems, although i would like to investigate a bit more, any advises with that ?
-
Smithx10
so.... do I just detach the offline disk at this point?
-
bahamat
Smithx10: Yeah, that looks like the right thing.
-
bahamat
Smithx10: Let me give you a gist...
-
Smithx10
nice that worked
-
Smithx10
now just add the new disk as a spare
-
bahamat
-
Smithx10
bahamat: all good now