-
tsoome_
jeffpc did start one, but it still needs much work
-
Smithx10
When issue an NMI over ipmi.... do we get a % of dump in the output? Last thing I saw in the output was dumping to /dev/zvol/dsk/zones/dump, offset 65536, content: kernel
-
Smithx10
I think I recall seeing a progress / percentage, think it might be hung to the point that it cant dump*
-
Smithx10
Its been 2 hours *
-
richlowe
yes, there is normally progress.
-
richlowe
I don't know when you should consider giving up, though
-
Smithx10
richlowe: Thats what I thought, I've punted the ball
-
nomad
does anyone have an example /etc/pam.conf that has sshd-pubkey example? I *suspect* my lack of any entries with that is the reason ssh is disconnecting when I try using a key.
-
nomad
"Access denied for user ansible by PAM account configuration [preauth]" is all I'm getting when running sshd -d on the server.
-
jbk
there is an undocumented pam debug facility that might tell you more what's going on
-
richlowe
apparently my pubkey auth is not pam-y
-
gitomat
[illumos-gate] 17760 qede: dereferencing freed memory -- Toomas Soome <tsoome⊙mc>
-
richlowe
nomad: if you grep 'PAM_DEBUG' you'll find the code for the facility jbk means
-
richlowe
it might even be semi-documented in there, libpam/pam_framework.c
-
jbk
yeah... that alone made me excited about opensolaris, just because knowing about that allowed me to solve some problems at the time :)
-
jbk
(like being able to supply a password to change via stdin, because there was some bug at the time that the DBAs using expect kept triggering which would erase /etc/shadow)
-
jbk
... which of course they setup to run across the entire production environment :P
-
nomad
I'm running sshd -ddd and getting things like "debug3: PAM: do_pam_account pam_acct_mgmt = 7 (Permission denied)" and "Failed publickey for ansible from [redacted] port 62192 ssh2: RSA SHA256:[redacted]" but that's after it already said it had accepted that key.
-
jbk
ok, so the account managment bit of pam is denying access
-
jbk
(entries with 'account' in the second column)
-
nomad
PAM so flexible and yet so [redacted]
-
nomad
: || lvd@hvfs2 ansible [643] ; grep account /etc/pam.conf
-
nomad
cron account required pam_unix_account.so.1
-
nomad
cups account required pam_unix_account.so.1
-
nomad
gdm-autologin account sufficient pam_allow.so.1
-
nomad
# Used when service name is not explicitly mentioned for account management
-
nomad
other account requisite pam_roles.so.1
-
nomad
other account required pam_unix_account.so.1
-
jbk
is the account a role?
-
nomad
I have a stanza for 'sshd-kbdint' that only has auth. I tried duplicating that for sshd-pubkey but no change.
-
nomad
the account is, near as I can tell, a regular account. It was created by useradd.
-
jbk
IIRC, that's fine -- if it doesn't find the service name for that, it'll fall back to other
-
jbk
does it have a password set? or is it *LK* in /etc/shadow?
-
jbk
if you want something akin to ssh-only, you want NP (passwd -N), not *LK* (passwd -l)
-
nomad
*LK*
-
jbk
try passwd -N user and reconnect
-
jbk
*LK* means locked as in 'no access as all'
-
nomad
that fixed it.
-
nomad
thanks!
-
nomad
Now to try to figure out how to tell ansible that.
-
jbk
NP means 'you cannot authenticate using a password -- so some alternate means must be used to login (e.g. ssh key)
-
jbk
which is distinct from an empty password (no entry)
-
jbk
it trips people up sometimes
-
nomad
I wonder if ansible.builtin.user knows about that.
-
nomad
ah, I can just say 'password: "NP" and it does it... with a complaint.
-
nomad
... and documented.
-
nomad
thanks for the fix!