Password Expiry Promtps Not Visable


 
Thread Tools Search this Thread
Operating Systems Solaris Password Expiry Promtps Not Visable
# 8  
Old 09-28-2009
Im not too sure.. But as far as I know this feature is new since Solaris 10/04 release.
The sshd daemon uses the variables in /etc/default/login and the login command. The etc/default/login variables can be overridden by values in the sshd_config file during ssh.

However, did you try to login to the server as root and check the messages file that the login attempts are logged in there? Please check and let me know
And what I have seen so far from the console is to set the new password. Never encountered a situation where it will prompt for the 'Password too short - must be at least 8 characters' error before

Last edited by incredible; 09-28-2009 at 09:08 AM..
# 9  
Old 09-28-2009
These messages aren't managed by PAM instead of SSH ?

I think you should check your PAM configuration to see if STDERR is not redirected to /dev/null or something like this.
# 10  
Old 09-28-2009
ahh, i never thought about the PAM configuration. It just seems odd that ssh from another solaris box works fine, in that it prompts to say 'password too short' but putty (using ssh) doesnt...wierd!

authlog writes out the following when attempting to connect through putty (at the point at which a new password is requested)

Keyboard-interactive (PAM) userauth failed[20] while changing authentication tokens (password): Authentication token manipulation error

cheers

---------- Post updated at 02:36 PM ---------- Previous update was at 02:21 PM ----------

any ideas what piece of the PAM configuration i need to look at?

thanks
# 11  
Old 09-28-2009
Try to set UsePAM to no or UsePrivilegeSeparation to yes in the configuration of the SSH server

Source : http://lists.mindrot.org/pipermail/o...08-October.txt
# 12  
Old 09-28-2009
But look again, it seems that it is still referring to a remote connection
Code:
If I do "UsePAM no" _or_ "UsePrivilegeSeparation yes" then the password
change process works...
  WARNING: Your password has expired.
  You must change your password now and login again!
  Changing password for user fred.
  Changing password for fred
  (current) UNIX password: 
  New UNIX password: 
  Retype new UNIX password: 
  passwd: all authentication tokens updated successfully.
  Connection to localhost closed.

(that logout and login again process is annoying)

# 13  
Old 09-28-2009
yeah. the whole thing is driving me crazy to be honest. the password will change fine for me (without any of the above change being made) my concern is the fact that general users will not receive the help prompts when attempting to log on through putty to a server that requires the password to be updated.

as i say, using ssh from another sun box works fine ie displays the prompt info

cheers
# 14  
Old 09-28-2009
Who knows.. Maybe its the default behaviour Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Root password expiry script

Hi Guys In red hat linux server is there a way to alert via email when the root password is about to expire ? As per security policy in our environment root password will expire in 90 days. Example : It would be better if we receive a email on 7th november stating that the root password... (1 Reply)
Discussion started by: newtoaixos
1 Replies

2. Solaris

Command to find out password expiry

Hi, I would like to know is there command which will tell me when password will be expire and when last password was changed ? like on linux chage -l <username? (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. Shell Programming and Scripting

Password expiry report

Hi All, I want to write a script that will send the alert when linux server password expiry for user 'x' is less than 12 days. I have written the below script but this is not working for expiry date 04 july script;- P_EXPIRY_DATE=`chage -l msdp| grep 'Password expires' | awk ' {... (2 Replies)
Discussion started by: abhigrkist
2 Replies

4. Solaris

disable password expiry

Hi How do i disable password expiration on ldap? It runs on Solaris 10 machine. Thanks in advance. (3 Replies)
Discussion started by: hrist
3 Replies

5. Shell Programming and Scripting

password expiry notification

Hi, Could someone please let me know how to write script for passwd expiry notification on salaries boxes. Regards Dnyan (1 Reply)
Discussion started by: dnyan
1 Replies

6. Solaris

SSH Password-less login fails on password expiry.

Hi Gurus I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails. Resetting my password reenables the keys. Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies

7. Solaris

Notification of password expiry.

Hi, Is there any way of sending an email to a number of users indicating that the passwords of user accounts will expire? Currently we have a test server with a number of oracle test accounts on it. Each of these accounts correspond to an instance of Oracle on the server. These... (2 Replies)
Discussion started by: sparcman
2 Replies

8. Solaris

Notification of password expiry.

Hi, Is there any way of sending an email to a number of users indicating that the passwords of user accounts will expire? Currently we have a test server with a number of oracle test accounts on it. Each of these accounts correspond to an instance of Oracle on the server. These... (2 Replies)
Discussion started by: sparcman
2 Replies

9. AIX

How to check password expiry in AIX?

Hi All, Could anyone please help me with the command or script for checking the password expiry for a particular userid on AIX. Regards, Sanjay...:) (5 Replies)
Discussion started by: SanjayPasum
5 Replies

10. UNIX for Advanced & Expert Users

password expiry

Hi, under SUN Unix, in which file the expiry date of a user password is indicated ? Many thanks. (2 Replies)
Discussion started by: big123456
2 Replies
Login or Register to Ask a Question