IIRC chvt is a privileged command, which makes sense (if an unprivileged user could execute this command they could effectively brick the computer for a local user).
That said, my understanding is that modern DE’s are given a lot of access, so presumably chvt is allowed (and in this case, is required because as others mentioned, password is required). So the only other option is to fail unlocked, which is all kinds of Bad.
IIRC
chvt
is a privileged command, which makes sense (if an unprivileged user could execute this command they could effectively brick the computer for a local user).That said, my understanding is that modern DE’s are given a lot of access, so presumably
chvt
is allowed (and in this case, is required because as others mentioned, password is required). So the only other option is to fail unlocked, which is all kinds of Bad.