![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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... |
|||
| Google The UNIX and Linux Forums |