Unable to login to proxmox after used add (Urgent)

ppo

Renowned Member
Aug 6, 2012
49
0
71
I did a stupid action. I need to grant access to user to reboot specified VM, so I did:
1) login as root to proxmox web
2) datacenter - user - add (name, linux PAM)
2) datacenter - permission - add user permission (path - "/106", user - select user, role - PVMVMAdmin)
Now I can't login as root to web and to ssh, but I steel have previously opened ssh session as root, please help!
root@proxmox:~# tail /var/log/auth.log
Mar 19 14:55:04 proxmox worker: pam_unix(common-auth:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
Mar 19 14:55:59 proxmox worker: pam_unix(common-auth:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
Mar 19 14:56:28 proxmox worker: pam_unix(common-auth:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
Mar 19 14:57:12 proxmox sshd[853524]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=pc-ppo.kh.ektos user=root
Mar 19 14:57:15 proxmox sshd[853524]: Failed password for root from 192.168.5.1 port 56884 ssh2
Mar 19 15:04:58 proxmox sshd[854724]: Invalid user jal from 192.168.5.1
Mar 19 15:04:58 proxmox sshd[854724]: Failed none for invalid user jal from 192.168.5.1 port 58702 ssh2
Mar 19 15:05:03 proxmox sshd[854724]: pam_unix(sshd:auth): check pass; user unknown
Mar 19 15:05:03 proxmox sshd[854724]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=pc-ppo.kh.ektos
Mar 19 15:05:05 proxmox sshd[854724]: Failed password for invalid user jal from 192.168.5.1 port 58702 ssh2
root@proxmox:~#
 
Last edited:
PAM users you add to the proxmox GUI need to be existing PAM users. i.e. you need to

useradd jal
passwd jal

and maybe

passwd root

I have no idea why what you did could possibly lock you out of ssh access tho
 
Last edited:
I did a stupid action. I need to grant access to user to reboot specified VM, so I did:
1) login as root to proxmox web
2) datacenter - user - add (name, linux PAM)
2) datacenter - permission - add user permission (path - "/106", user - select user, role - PVMVMAdmin)
Now I can't login as root to web and to ssh, but I steel have previously opened ssh session as root, please help!

Hi,
you can't login via ssh as root? Should possible, because pve don't change the passwd (imho).

What happens if you create your user?
useradd jal
passwd jal

Udo
 
with existing ssh session I did
# passwd
and change password, after that I'm able to open second ssh session and login to web and delete user jal.
existing session save my life due proxmox host in thousands km far of me.

So before adding user in web I should create it in console? and than assign any right?