Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test = `openssl passwd -1 "tc2011!!"`
- user node[:teamcity][:user] do
- action :create
- system true
- supports {:manage_home }
- home "/home/teamcity"
- shell "/bin/bash"
- group "#{node[:teamcity][:group]}"
- password test
- end
- tail -f /var/log/secure
- Jul 24 11:13:17 nk-vm02 sshd[2749]: pam_unix(sshd:session): session closed for user rdnkaravias
- Jul 24 11:13:27 nk-vm02 sshd[8905]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.100.210.127 user=teamcity
- Jul 24 11:13:29 nk-vm02 sshd[8903]: error: PAM: Authentication failure for teamcity from 10.100.210.127
- Jul 24 11:15:24 nk-vm02 sshd[9170]: [lsass-pam] [module:pam_lsass]LsaPamGetCurrentPassword failed [error code: 49919]
- Jul 24 11:15:24 nk-vm02 sshd[9170]: [lsass-pam] [module:pam_lsass]pam_sm_authenticate error [login:teamcity][error code:49919]
- Jul 24 11:15:24 nk-vm02 sshd[9170]: error: ssh_msg_send: write
- Jul 24 11:17:57 nk-vm02 sshd[9191]: Accepted keyboard-interactive/pam for rdnkaravias from 10.100.210.127 port 50212 ssh2
- Jul 24 11:17:57 nk-vm02 sshd[9191]: pam_unix(sshd:session): session opened for user rdnkaravias by (uid=0)
- Jul 24 11:18:03 nk-vm02 sudo: rdnkaravias : TTY=pts/1 ; PWD=/home/local/ELQRD/rdnkaravias ; USER=root ; COMMAND=/bin/su -
- Jul 24 11:18:03 nk-vm02 su: pam_unix(su-l:session): session opened for user root by rdnkaravias(uid=0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement