![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| root passwd expiration on AIX | aixguy | AIX | 3 | 06-30-2009 03:03 AM |
| forgot root passwd | techbravo | Red Hat | 12 | 07-21-2008 11:56 PM |
| hw to reterive root passwd | mightypp.nits | UNIX for Dummies Questions & Answers | 10 | 11-24-2007 11:16 PM |
| How to set new Root Passwd | gini | SUN Solaris | 2 | 12-05-2006 04:33 PM |
| Recover root passwd | gini | SUN Solaris | 5 | 11-29-2006 08:09 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need to change root passwd
I booted up Sun V240 server with boot cdrom -s using the Sun Operating System CD. I now am at the # prompt and su - root . The system will not allow me to set password for root. Get following error:
# passwd New Password: xxxxxxxx Re-enter new Password: xxxxxxxx passwd: Unexpected failure. Password database unchanged. Permission denied Can anyone help me please!!! |
|
||||
|
I've really got myself into a cluster..... . I switched to sys using su - sys. Don't ask me why . But now I can't get back to root without a password. And I don't know the password for sys. So what log files are you asking about? I'll need the specific name. The only thing left to do is a hardboot from the system switch and I don't think that's going to buy me anything. Sinc eI don't know the root or sys password I'm really jammed up here.
|
|
||||
|
If you can edit the shadow file(/a/etc/shadow for solaris, apparently) by hand, you can delete root's password completely, letting you login as root without a password. Back it up of course. See details here.
And if you logged into sys with su, wouldn't you still be logged in as root once you exit from su? |
|
||||
|
You booted to a cd and are trying to change root's password? You can't just use passwd since it's trying to write to the CD and it's not writeable. If you're trying to modify root's password on the system disk (/dev/dsk/c0t0d0s0 for example), you'll need to mount slice 0 and edit the shadow file.
Code:
# mount /dev/dsk/c0t0d0s0 /a # cd /a/etc # vi shadow Carl |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|