https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • v

    VoxBot

    11/22/2024, 4:03 PM
    what were in those fucking cereals this morning, fentanyl?
  • v

    VoxBot

    11/22/2024, 4:03 PM
    this is insane
  • v

    VoxBot

    11/22/2024, 4:03 PM
    anarcat: is there anything like SELinux or AppArmor on those systems that could interfere?
  • v

    VoxBot

    11/22/2024, 4:03 PM
    apparmor, perhaps
  • v

    VoxBot

    11/22/2024, 4:03 PM
    not selinux
  • v

    VoxBot

    11/22/2024, 4:05 PM
    just for fun, can you change the order in AuthorizedKeysFile ?
  • v

    VoxBot

    11/22/2024, 4:05 PM
    no apparmor
  • v

    VoxBot

    11/22/2024, 4:05 PM
    yeah
  • v

    VoxBot

    11/22/2024, 4:06 PM
    and maybe namei -l /etc/ssh/userkeys/$thefile /var/lib/misc/userkeys/$thefile /etc/ssh/userkeys/%thefile.more /etc/ssh/puppetkeys/$thefile
  • v

    VoxBot

    11/22/2024, 4:06 PM
    nope, that's not it
  • v

    VoxBot

    11/22/2024, 4:07 PM
    yeah the namei is fine
  • v

    VoxBot

    11/22/2024, 4:07 PM
    755 all the way up to the 600 root:root file
  • v

    VoxBot

    11/22/2024, 4:07 PM
    mhm
  • v

    VoxBot

    11/22/2024, 4:07 PM
    changing the order still fails
  • v

    VoxBot

    11/22/2024, 4:07 PM
    i'm going to strace sshd
  • v

    VoxBot

    11/22/2024, 4:08 PM
    [pid 1989593] openat(AT_FDCWD, "/etc/ssh/puppetkeys/pgbackrest-weather-01", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied)
  • v

    VoxBot

    11/22/2024, 4:08 PM
    ok, the puppetkeys/userkeys is a red herring
  • v

    VoxBot

    11/22/2024, 4:09 PM
    if i move the file between the two, it still fails
  • v

    VoxBot

    11/22/2024, 4:10 PM
    how did I not know about namei
  • v

    VoxBot

    11/22/2024, 4:10 PM
    105422 <anarcat> let me reproduce, hold on
  • v

    VoxBot

    11/22/2024, 4:10 PM
    okay so i don't know what happened 15 minutes ago
  • v

    VoxBot

    11/22/2024, 4:10 PM
    ewoud: it's awesome!
  • v

    VoxBot

    11/22/2024, 4:10 PM
    but now i'm 100% confident i can't ssh if i chmod 600
  • v

    VoxBot

    11/22/2024, 4:10 PM
    i'm going to sshd -d
  • v

    VoxBot

    11/22/2024, 4:11 PM
    who'd have thought that on Friday after 17:00 I'd still learn something new :P
  • v

    VoxBot

    11/22/2024, 4:11 PM
    debug1: temporarily_use_uid: 115/123 (e=0/0)
  • v

    VoxBot

    11/22/2024, 4:11 PM
    debug1: trying public key file /etc/ssh/userkeys/postgres
  • v

    VoxBot

    11/22/2024, 4:11 PM
    Could not open user 'postgres' authorized keys '/etc/ssh/userkeys/postgres': Permission denied
  • v

    VoxBot

    11/22/2024, 4:11 PM
    so this is what i'm talking about here
  • v

    VoxBot

    11/22/2024, 4:11 PM
    see that temporarily_use_uid ?
1...628629630...648Latest