The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
convert windows OS as Solaris remotely panchpan SUN Solaris 1 03-03-2008 11:26 PM
remotely Install netbackup on solaris panchpan SUN Solaris 1 01-15-2008 05:03 PM
using ssh change password remotely? RishiPahuja UNIX for Advanced & Expert Users 4 09-26-2007 07:33 AM
Need to change root passwd mayewil UNIX for Dummies Questions & Answers 4 10-27-2006 03:03 PM
User should not be allowed to change passwd brookingsd UNIX for Dummies Questions & Answers 3 01-23-2006 09:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-15-2008
Registered User
 

Join Date: Nov 2007
Posts: 24
change passwd remotely in solaris 10

i'm trying to change passwd remotely in unix (solaris) and tried using "expect" but it is not working.

Any ideas to change the passwd remotely using a shell script?
Reply With Quote
Forum Sponsor
  #2  
Old 09-15-2008
Registered User
 

Join Date: Dec 2001
Posts: 4
set your encrypted password, and use sed to replace it

sed -s '/oldpass/newpass' /etc/shadow > /etc/shadow.new
cp -p /etc/shadow /etc/shadow.Orig
cp -p /etc/shadow.new /etc/shadow


this assumes that you set the password on a local box, and you can get the encrypted passwd from the local /etc/shadow...

Also assumes that no two users have the same password...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0