I have been using this server for a few months. At the beginning I sent the admin my public ssh key, and he set up the account for me, and I have only used the ssh key to log in. I definitely didn't have a password at first.
Since then I may or may not have set up a password using passwd
. Right now if I use passwd
I see this.
$ passwd
Changing password for user myusername.
Changing password for myusername.
(current) UNIX password:
While it seems to suggest that I do have a password, I have no memory of ever doing this.
How can I tell conclusively whether my password is set?
EDIT:
I can't log in nor change password, because I don't know what the password is (blank password doesn't work).
The distro is Fedora release 20 (Heisenbug).
passwd
will complain of a wrong password no matter what you type.passwd
will not ask for your current password if you do not have one. Another way to check is to typesu myusername
; if there's no password, it will not ask for one. But any of this can be overridden by the system administrator, for example by removing thenullok
option from thepam_unix
entries in/etc/pam.d/*
, in which case a non-administrator cannot tell who has passwords and who does not, except perhaps by doing timing tests.