Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing password in Solaris 10

Status
Not open for further replies.
May 7, 2008
4
CA
I have a situation where I am supposed to change the password for four users in Solaris 10. Once I am root I type 'tcsh' and proceed with 'passwd <username>' command. I am getting the prompt to type the previous password and enentually it breaks. Please let me know the right procedure.

root@appprd default# uname -a
SunOS appprd 5.10 Generic_125100-09 sun4u sparc SUNW,Netra-T12

root@appprd default# echo $SHELL
/sbin/sh

root@appprd default# passwd abcdefgh
Enter abcdefgh's password:


Thanks

Rob
 
unixrobert said:
...and eventually it breaks.
Can you be more specific? What breaks? How does it break? Any error messages?

If you are logged on as root, you won't have to supply their old password to change it.

Also, I don't know why you're having to type "tcsh" first. That has nothing to do with changing a password. And you don't show this in your example commands.

 
root@appprd ~# ypcat passwd | grep -i chris
czaleski:jHoL4EzaKQeCM:1557:1001:Chris Zaleski:/export/home/czaleski:/bin/tcsh


root@appprd ~# uname -a
SunOS appprd 5.10 Generic_125100-09 sun4u sparc SUNW,Netra-T12


root@appprd ~# id
uid=0(root) gid=0(root)


root@appprd ~# id czaleski
uid=1557(czaleski) gid=1001(carw1)


root@appprd ~# passwd czaleski
Enter czaleski's password:
New Password:
Re-enter new Password:
passwd: Password information unchanged.
 
Like Sam, I've never known root to need to supply a user's existing password. Perhaps try using vanilla ksh?

I want to be good, is that not enough?
 
Are you trying to change a local password or a NIS password?

I believe you need the -r option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top