Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-10-2008, 11:24 PM   #1
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
ssh without change password

I have two server ( server A and server B ) , user in server A will ssh to serverB , I hv set the public key so that user do not need to input password when login serverB , but I found that serverB have policy to force user to change password regularly , so when the time the password is expired , the user is required to change password via the ssh login , can advise how to skip to ask user to change password if they use ssh to login ? thx
Old 09-11-2008, 12:12 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
You'd have to adjust the policy on serverB... not sure if that's doable on a per-user basis, what are you using to enforce the password change? If pam, you should be able to set their account to never expire.
Old 09-11-2008, 12:15 AM   #3
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
You can either check / remove the password expirey using the passwd command, man passwd should be all you need.
Also to check the policy you can look at /etc/login.defs.
You don't say for which distro so the above is true for Redhat/Cent/Fedora.
Login deeper you could check /etc/pam.d/system-auth and /etc/pam.d/sshd.
We are assuming here that your not using LDAP/Directory Server etc either.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking out a user when password expires, but allowing them to change their password kaplan71 Linux - Security 5 06-27-2008 08:12 PM
SSH login not working following password change CaptainReboot Linux - Software 14 03-20-2008 07:41 AM
Can't change password through SSH Juan Quesada Linux - Security 1 08-16-2004 04:01 PM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 10:39 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration