LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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-10-2008, 11:12 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
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-10-2008, 11:15 PM   #3
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Ubuntu
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.
 
  


Reply


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 07:12 PM
SSH login not working following password change CaptainReboot Linux - Software 14 03-20-2008 06:41 AM
Can't change password through SSH Juan Quesada Linux - Security 1 08-16-2004 03:01 PM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 09:39 AM


All times are GMT -5. The time now is 01:34 AM.

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