Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The OCTOPASS is linux user mangement tool for c...

The OCTOPASS is linux user mangement tool for cloud or github generation

YAPC::Fukuoka 2017 Hakata の 前々夜野菜 in GMO Pepabo の資料です

linyows

June 30, 2017
Tweet

More Decks by linyows

Other Decks in Programming

Transcript

  1. Πϯετʔϧͱઃఆ $ sudo apt-get install octopass $ cat <<EOF >

    /etc/octopass.conf Token = "iad87dih122ce66a1e20a751664c8a9dkoak87g7" Organization = "fukuokago" Team = “operators” EOF $ sudo chown root:root /etc/octopass.conf
  2. HJUIVC͔Β໊લ͕ͻ͚ɺݤ͕औΕΔ $ id ken uid=5458(ken) gid=2000(operators) groups=2000(operators) $ octopass passwd

    chun-li:x:14301:2000:managed by octopass:/home/chun-li:/bin/bash dhalsim:x:8875:2000:managed by octopass:/home/dhalsim:/bin/bash ken:x:5458:2000:managed by octopass:/home/ken:/bin/bash $ octopass ken ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqUJvs1vRgHRMH9dpxYcBBV687njS2YrJ+oeIK…
  3. QBNDPOGFYBNQMF #%PAM-1.0 auth required pam_securetty.so auth required pam_unix.so shadow nullok

    auth required pam_nologin.so account required pam_unix.so password required pam_cracklib.so retry=3 password required pam_unix.so shadow nullok use_authtok session required pam_unix.so
  4. 0$501"44Ͱ޻෉ͨ͜͠ͱ ๏ (JUIVC͕མͪͯͯ΋ಈ࡞͢Δ DBDIF ๏ ໊લղܾͳͷͰߴ଎ʹಈ࡞͢Δ DBDIF ๏ VOJUUFTUॻ͘ʢDSJUFSJPO ๏

    ΋ͪΖΜ౷߹ςετʢCBTIEFʜ ๏ ґଘੑΛݮΒ͢ʢMJCDVSMͱKBOTTPO ๏ ֤छEJTUQLHͷ࡞੒ΛࣗಈԽ EPDLFSDPNQPTF