System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

WARNING: Your password has expired. Password change required but no TTY available.

Vidhya B
Frequent Advisor

WARNING: Your password has expired. Password change required but no TTY available.

Hi,

We are using a user for whom we have shared the ssh keys. So that we will be able to scp via that user without prompting for password.

Its not getting scp today. When I tried to manually do it, I got the below errors while doing it.

WARNING: Your password has expired. Password change required but no TTY available.

We didn't set password for that user.
Please help.
6 REPLIES
Steven Schweda
Honored Contributor

Re: WARNING: Your password has expired. Password change required but no TTY available.

> We didn't set password for that user.

Perhaps you should. It seems to be expired.
Did it ever work? Is this a newly created
user? (I'd guess that the password is
initially expired when the account is
created, so that the user will be forced to
set a new password the first time he logs
in.)

If this were a normal interactive session
(rsh/remsh, ssh, Telnet, ...) then the user
might have been prompted to set a new
password, but scp is not an interactive
session ("no TTY available"), so the server
can't ask the user to set a new password.
Vidhya B
Frequent Advisor

Re: WARNING: Your password has expired. Password change required but no TTY available.

Hi,

I have even tried after setting the password for the user.

same issue exist.

WARNING: Your password has expired.
Password change required but no TTY available.

Shibin_2
Honored Contributor

Re: WARNING: Your password has expired. Password change required but no TTY available.

Check any password policies implemented in that server. That may be got effective and caught this user.
Regards
Shibin
Vidhya B
Frequent Advisor

Re: WARNING: Your password has expired. Password change required but no TTY available.

Hi,

How will I be able to check the password policy for that particular user.

Please help.
Shibin_2
Honored Contributor

Re: WARNING: Your password has expired. Password change required but no TTY available.

Yes you can check that through SAM ( the easiest way ).
Regards
Shibin
Vidhya B
Frequent Advisor

Re: WARNING: Your password has expired. Password change required but no TTY available.

Hi,

I have set the max password age using the below command.

#passwd -x 208

please find the logins -xl -l output

user 111 users 20 user
/home/user /sbin/sh
PS 060211 0 210 7