Forget unix root password

Hi
A LAN administrator forgets his UNIX root password. Yes, I know it is frustrating to forget the root password. Any way, is there a way to login and change or reset the root password? Someone tried to boot off a Solaris 7 CD and cancelled the options INSTALLED and UPGRADE, then tried to mount /dev/rdks/c0t0d0s0 /mnt, but not working.
Thank you
Cindy

Hey Hey..
The option of "boot cdrom -s" , mounting the disk's root partition using a simple mount command and then editing the /etc/passwd and /etc/shadow files works fine whatever Solaris version.
Just make sure that your /etc/passwd root entry in the disk's root
(rememeber to /<mount point>/etc/passwd and not /etc/passwd when booting off the CD is like this.
root::0:1:Super-User:/:/sbin/sh
Note that the second filed in this file is BLANK.
Then also make sure that the /etc/shadow file entry alos looks
like this.
root::11515::::::
Note that the second filed in this file is BLAN here too.
Now you are all set and root has no password when you do a
reboot of the system through your disk.
HTH
Shridhar

Similar Messages

  • Forget my root password of n810

    hi
     iam using the n810 internet tablet and i want to run my own application on it and while running it asks me to become root and unfortunately some one changed the root password r i forget the root password ..i mean something happen ....so.. for running my application i need to get the root password ..can u plz help me in getting that otherwise can u suggest me how to set a new root password..

    814488 wrote:
    I forget my linux (release as4) root password
    how to reset the password You use the passwd command. That is the easy part.
    The difficult part is that you need root access to run this command for the root account.
    Which means using another method, than logging on using root username and password. This method can be to ssh into the root account using trusted keys. IMO, it will be a major security flaw on your side if you do not use ssh trusted keys for root access and rely on password verification instead. Another method will be using the sudo command (assuming that this has been setup and configured). If there is a VNC server session for the root desktop, access can be gained that way (VNC will be using a different password and of course you will need to know that password).
    Or you can pop in a LiveCD (Ubuntu/Kubuntu) into the server, boot that, mount the root file system of the server and manually edit the +/etc/shadow+ file.

  • Root Password Recovery + Cisco IPICS 2.1

    Hi all,
    i forget the root password for the IPICS version 2.1. Please can someone help me how can i rest it ?
    Thanks in advance
    Hicham

    Hi Hicham,
    Is this what you are looking for ?
    http://www.cisco.com/en/US/docs/interoperability_systems/c_ipics/211/troubleshooting/guide/tgtools.html#wp1060745
    Regards,
    Christos

  • Changing Root password  in HP-UNIX will affect any R/3 servers

    Hi,
          we are running R/3 on HP-Unix  with Oracle as database and we would like to change the Root Password of UNIX for security reasons and would like to confirm changing the ROOT password will affect any SAP R/3 servers or will it change any of the parameters at OS level that will have affect on R/3.
    Please do let me know what are the changes that will take place once we change the root password at OS level and R?3 level.
    Regds,
    Satyanarayana N.

    Hi,
    Hardcoded passwords into the scripts isn't a good practice, but if you're not sure about yours, go to the directory(es) where you have them (p.e. /usr/local/bin) and run
    <i># grep <b>your_pwd</b> *.sh</i>
    It must show you if there's this word into one of the shell scripts.
    Best Regards,
    JC Llanes.

  • How do  you reset the root password in Mountain Lion?

    After install of Mountain Lion on my old iMac, I could not enter administrator, no password would work, Apple support helped me go through terminal to reset root password and root as administrator . I then was able to reset myself as administrator with a new pasword. I used that paassword a few times now it wont accept it again. I dont remember all the steps to reset the root password and recover from this situation.. Can anyone help?  Is this a bug in Mountain Lion?

    I'm having similar issues but other concerns
    1. Can't go into recovery mode since its protected by firmware password, which I don't have. All option keys sequences go into the same firmware padlock, which I don't have the apparent pin.
    2. In terminal mode it didn't happen to recognize that unix command.  Also since I'm just on guest would that reset for the admin or possibly the guest acct?
    3. I've done the DIMM pulls and even though older model, 2011, it didn't appear to a reset for the firmware password.
    Any other options??

  • Root password misplaced

    Hi ,
    I have forgotten my root password on my macbook.i mean when i login on BSD unix if if type su -
    then i cant login as i dont have a root passs
    How do i recover or reset a new one.Any idea?
    Regards,
    Sanlen
    Message was edited by: sanlen

    As etresoft wrote, you should be login as root. Its better to use sudo.
    sudo -s
    will give you a shell, if needed.
    To change the passwd just try something like
    sudo -s
    passwd

  • Shutdown from SliM without typing root password

    Something similar to GDM's shutdown button...why does slim need the root password ?
    As a second best, I tried setting up acpid to send the shutdown signal upon pressing the power button but that doesn't work until i'm logged in.
    Any suggestions ?

    tigrmesh wrote:If you have sudo installed, you can use visudo to give your user privilege to run the shutdown command.  Have a look at the man page for sudoers
    I do have sudo set up so that I can shut down that way. I know that unix is multi user system but this is my laptop we're talking about and only I use it.
    B wrote:You can do it just fine without having to be logged in. Just check the wiki.
    Will check the wiki again...
    Last edited by moljac024 (2008-04-27 09:18:05)

  • Reset root password on T3 array

    In a new position I have inherited 3x T3 arrays (2 live one spare).
    Unfortunately due to a number of staff changes prior to my arrival the root passwords on two of these (1 live and the spare) have been lost.
    Is there any way to re set the passwords, even if this means data loss?
    Thanks.

    Or you could check the sunmanager archives. :)
    http://unix.derkeiler.com/Mailing-Lists/SunManagers/2003-04/0191.html
    The cable pinout is also published:
    http://www.conserver.com/consoles/Signals/sigs-SunT3-RJ13.jpg

  • ARD to set root password

    Is there a way to set the root password to several clients using ARD 2.2? I would normally do this using Netinfo Manager at the machine. I'm assuming there is a unix command to do this?
    I finished setting up a computer lab and forgot to set the root password before I cloned the hard drive. I need to secure my workstations from clever students.
    Thanks for any help.

    found answer http://support.apple.com/kb/HT1528

  • Sudo root Password Prompt

    Hi, I've built a widget that allows the user to modify the power settings wake-up schedule.
    I did this through the pmset Unix command, like this:
    widget.system("/usr/bin/sudo pmset repeat wake MTWRFSU "hours+":"+minutes":00", null);
    I am forced to use sudo, because OS X's security settings block the widget's access to pmset. The issue I have is that since the sudo command returns a password prompt in the Terminal (in the Unix console), on the user side nothing happens, when they use the widget. The whole process is cancelled due to an invisible password request.
    The question I am asking is, is there a way to prompt the user for the root password through OS X's default user password dialog box, instead of prompting through the background running Unix console? Is there a Unix or AppleScript command that does this?
    And if there isn't, is there a way to send password information (that was entered in the widget) directly to the Unix console?

    Applescript allows you to run a shell command using "Administrator privileges" (basically like sudo, only better).
    The following AppleScript will run "/bin/ls -la" with root privileges by prompting the user in a standard Authorization Services dialog:
    do shell script "/bin/ls -la" with administrator privileges
    (Note: you do not need to use sudo in there anywhere, that's handled for you automatically; simply list the process you want to run and the options).
    If you knew the user's password prior to running this command, you could do the following:
    do shell script "/bin/ls -la" with administrator privileges password "myPlainTextPassword"
    Note that this isn't as secure as letting AuthorizationServices handle the password prompt.
    You may want to play around in Script Editor (/Applications/AppleScript/) until you get the command syntax down right. Then, you can use the "osascript -e" shell command to execute the script from your widget.
    For example, the following shell command would have basically the same effect as executing the above-mentioned AppleScript:
    osascript -e "do shell script "/bin/ls -la" with administrator privileges"
    So, to review, in case your head is starting to swim a bit... You're executing a shell command (osascript) to execute an AppleScript which in turn uses AuthorizationServices (prompt for password) to perform a shell command with root privileges.
    Hope this helps...

  • Snow Leopard Finder always prompting for root password

    I've just 'upgraded' to Snow Leopard from Tiger on my Macbook Pro, only because increasing numbers of applications wouldn't install on Tiger. Snow Leopard is significantly slower than Tiger (2 gig plainly isn't enough for SL) and it's knackered a few of my installed applications, but that's not the main irritation. Now, when I carry out any move or delete operations in the Applications folder in Finder, I'm repeatedly prompted for the root password, even though I'm logged in as the root user. As it's quite a long password, for security reasons, this is a real PITA. Under Tiger, I was never so prompted. Can anyone suggest why Leopard's producing this prompt, and what can be done about it? Other than de-install SL and re-install Tiger, that is...
    Fred

    William Boyd, Jr. wrote:
    Is running as "root" your normal mode of operation? If so, why? For several reasons that's recommended.
    Fred Riley wrote:
    Ok, I suppose I should be a bit more accurate. I login as user 'fredriley' which is a user with superuser rights. I don't login as 'root' because that's pretty bad practice in the Unix world (and rightly so), so my original message was inaccurate.
    I'm guessing that's a mistype and should say "For several reasons that's not recommended" since in OS X root is disabled by default. What you were really getting a prompt for is the admin password. But you know that.
    Now, though, I find some apps that would work under Tiger not working under SL, and I see no real functionality gain from 10.4 to 10.6. Ho hum.
    Only because the application versions you have were written for an OS that was superseded almost four years ago. The current versions of those apps are likely better than ever.
    As for "no functionality gain" ...look harder. For me, Tiger was a good solid OS with a few annoyances, Leopard was even more solid with the refinement and removal of most of the Tiger annoyances, and Snow Leopard is a further optimization.
    Some people complain about new versions of various apps and OSs only getting loaded down with feature bloat. Well, with OS X you also get a lot of refinement and optimization. If a new version appears to have "no functionality gain," would that not imply that most of the work went into substance (performance, efficiency, workflow) rather than style (feature bloat and eye candy)? Just trying to help you keep an open mind. Personally, I would not want to go back to Tiger because I would miss the subtle but positive adjustments that were made since then. Tiger would just annoy me now.

  • Reset root password of OVS Server

    Hi Guru,
    I have install the OVS Server 3 and now am unable to connect using the root password.. I need to reset the password so that I can login to the OVS Server.
    Can you please help to provide steps to perform this
    Note: I have already tried to boot OVS Server into the single user mode but it’s not working.
    Thank you in advance
    Regards,
    Jignesh

    OVM server is just linux with the Xen hypervisor so it should reset fairly easily.  Did you follow steps like the ones below, this is for RHEL which is the upstream Distro for the OVM Server kernel.
    1. Boot the system and when you see the following message "Press any key to enter the menu",  press any key.  (You will see the list of available kernel versions.)
    2. Press e in order to edit commands before booting.
    3. Highlight the list item with vmlinuz in it by using the arrow keys and press e.
    4. Now type single or init 1 at the end of the line.
    5. Then press enter and b to boot the system with the new argument. (The system will boot into single user mode and you will see bash prompt)
    Now it's time to change the password:
    6. Type passwd
    Examples:
    ### Shell Commands ###
    passwd
    Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully
    7. Type reboot to restart the system.
    sourece: 7 easy steps to reset forgotten root password on CentOS/Red Hat | Javalobby
    Good luck, Russell

  • How to Delete and Reset a Lost Root Password on a System With a Mirrored ??

    hi All,
    we are experiencing problem,lost root password on Solaris 10 Sparc T5120, with mirror root,
    and we found the solution from Metalink.oracle.com, has anyone have try this??
    here list capture the file system :
    Filesystem size used avail capacity Mounted on
    */dev/md/dsk/d10 2.0G 349M 1.6G 18% /*
    */dev/md/dsk/d40 9.8G 563M 9.2G 6% /usr*
    */dev/md/dsk/d30 9.8G 1.4G 8.4G 15% /var*
    */dev/md/dsk/d50 7.9G 310M 7.5G 4% /opt*
    */dev/md/dsk/d600 3.8G 4.3M 3.8G 1% /home*
    */dev/md/dsk/d602 471M 20M 404M 5% /app/controlm*
    */dev/md/dsk/d601 471M 251M 173M 60% /app/ctsa*
    */dev/md/dsk/d604 4.9G 1.1G 3.8G 23% /app/oramon*
    */dev/md/dsk/d603 20G 11G 8.2G 58% /app/oracle*
    */dev/md/dsk/d606 39G 10.0G 29G 26% /proj/iprdb01/orafra/iprod01p*
    here the step :
    Solstice DiskSuite[TM] Software: How to Delete and Reset a Lost Root Password on a System With a Mirrored Root Disk [ID 1010755.1]
    Solution
    Steps to Follow
    How to delete and reset a lost root password on a system with a mirrored root disk.
    1) Insert the Solaris[TM] Operating System CD-ROM into the CD-ROM drive.
    2) Once the CD-ROM is in the drive, perform a stop-a. This brings the system down to the "ok" prompt.
    3) From the "ok" prompt, perform a single-user boot from the Solaris OS CD-ROM.
    ok boot cdrom -s4) At the "#" prompt, determine which disk is the system's boot disk (containing the root file system). There are several Oracle architectures and various configurations of systems when it concerns a boot disk. As a general rule, most boot disks are attached to controller 0 (c0). Usually, their SCSI target is
    either 3 (t3) or 0 (t0). However, Oracle machines are very flexible, and the boot disk could be at a different location. If you are not sure which disk is your boot disk, perform the following steps to determine the location of the boot device:
    a) # eeprom boot-device
    The output might appear to be simple, such as "disk" or "disk1" or more complicated, such as a pathname "/iommu/sbus/espdma@4,8400000/...../sd@3,0:a".
    b) Make note of the boot-device. If the boot-device is a pathname, it is beyond the scope of this information to provide the location of the customized boot disk. However, for most configurations,
    finding the customized boot disk is an easy task. The "Format" command shows all available disks:
    #format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    (enter its number): c) Enter d to exit format.
    Now, you will have an idea what disks are on the system. Therefore, if the boot-device is "disk" and format shows "c0t0d0" (on some systems "c0t3d0") then that is the boot device. If boot-device
    shows "disk1" and format shows "c0t1d0," then that is the boot device. If format shows multiple disks, then based on what the "eeprom boot-device" command shows, the system's boot disk would be:
    boot-device format
    disk c0t0d0 or c0t3d0 (machine dependent)
    disk1 c1t0d0
    disk2 c0t2d0
    disk3 c0t3d0 or c0t0d0 (machine dependent)
    and so on ....
    5) Because the system was not brought down gracefully (no root password means having to use the Stop-a keystroke to "crash" the system), you need to run "fsck" to clean the root partition (slice). The fsckalso confirms that you selected the proper slice.
    # fsck /dev/rdsk/c1t0d0s0
    where the X and Y are determined by the previous procedure. It is also possible to have a root partition which is not on slice 0 (s0), but, again, that is not a standard configuration.
    The output of "fsck" looks like this:
    ** /dev/rdsk/c1t0d0s0
    ** last mounted on /
    ** Phase 1 .....
    The second line in the output of "fsck" ("** Last mounted on /") confirms that this is the correct root filesystem partition. Answer "y" to any questions fsck asks. There shouldn't be too many items
    needing repair. If there are, there is a possibility of a corrupted root filesystem. After fsck is finished, mount the root partition:
    # mount /dev/dsk/c1t0d0s0 /a
    Again, X and Y are the same as for the fsck command.
    For example:
    # mount /dev/dsk/c1t0d0s0 /a
    6) From the root prompt, set the proper TERM type command (such as vt100, dtterm, sun, and so on)
    by entering this command:
    # TERM=sun; export TERM
    7) Use the VI text editor to edit the /etc/shadow file:
    # vi /a/etc/shadow
    8) The first line of the /etc/shadow file is the one you want to modify.
    It looks like this:
    root:c3.yAVmYodWsc:6445::::::
    9) Delete every character between the first and second colons in the first line of the file. When you finish deleting the characters, the line should look like this:
    root::6445::::::
    10) Press the Escape key, then enter the following to save the file and exit vi:
    :wq!
    11) Use the VI text editor to edit the /etc/system file andremove the "rootdev" line shown below:
    # vi /a/etc/system
    *rootdev:/pseudo/md@0:0,0,blk
    Don't comment out the "rootdev" line. Actually remove it.
    12) In the /a/etc/vfstab file, replace the lines for the system filesystem meta-devices with their underlying partitions. For example, change lines from
    /dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
    to
    /dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
    ONLY change the lines for root (/) and the filesystems that were affected by the actions you took in step 1 of this procedure. All other metadevices may stay as is in this file.
    13) Unmount root, check the root filesystem, and then stop the system:
    # cd /
    # umount /a
    # fsck /dev/rdsk/c1t0d0s0
    # stop-a
    14) Boot to single-user mode:
    ok boot -swTHIS STEP IS VERY IMPORTANT; YOU MUST BOOT TO SINGLE-USER MODE TO AVOID FILESYSTEM CORRUPTION.
    If the system does not boot to single user mode, you might have made a mistake in the previous steps.
    15) Because the root password was cleared in an earlier step, press Return when prompted for the the root password. Once you are in single-user mode, you must clear the metamirrors and all the sub-mirrors for the root filesystem. For example, if root (/) is d0, run the following command:
    # metaclear -f -r d0
    Running the metaclear command not only clears the metamirror but also clears the submirrors that are part of this mirror.
    16) When the metamirror is cleared, continue the boot up to multiuser mode by either pressing CTRL-D or by entering the following:
    # exit
    Now everything should be as it was, except that the system partition is on the underlying partition and isn't mirrored. You will simply need to re-create the metadevices for the root mirror as you had originally.
    many thanks

    Hi,
    Halt your machine.
    Boot with fail-safe mode.
    format and list out the disks. (You can get the root & mirror disk (c#t#d#) details from /etc/lvm/md.tab of your root or mirror disk. Earlier explorer output may help)
    Mount the root disk and remove the password entry in /etc/shadow
    umount it.
    Mount the mirror disk and remove the password entry in /etc/shadow
    umount it.
    reboot the server.
    Hope this helps!

  • How can I lock out my iCloud? Because of forget my old password and I have do a new Apple ID but when wan to log out my iCloud it call me to logout find my iphone but already forget the password . Have any solution ?

    How can I lock out my iCloud?
    Because of forget my old password I have create a new Apple ID
    But when I wan to log out my iCloud,it call me to logout Find My iPhone.
    I had already forget the password that why I create a new Apple ID.
    Have any solution for problem like this ?

    Apps and Music are not from iCloud. Are from iTunes and App Store.
    You can change this from: Settings>iTunes and App Stores>Sign out and sign in with new ID, but you will have to pay again to download apps that you already have in your old account. Or leave it as it is to share purchases with your son.

  • Reset lost root password and now have read only filesystem

    Hello,
    I have recently had to reset a locked root password by booting from cdrom, mounting the first boot disk, editing the shadow file to remove root's password and rebooting the system.
    The system has booted OK but, I now have a read only filesystem - everything in / cannot be edited, passwd doesnt work etc.
    df -k shows the root (/) filesystem has been mounted on the physical disk I edited:
    Filesystem kbytes used avail capacity Mounted on
    /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a 10085836 185862 9799116 2% /
    but in the vfstab it still references the disksuite metadevice:
    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot options
    /dev/md/dsk/d30 /dev/md/rdsk/d30 / ufs 1 no -
    So, can I simply boot from CDROM again, amend the vfstab to be /dev/dsk/c0t0d0s0 (instead of /dev/md/dsk/d03) and reboot?
    Any help with this is appreciated!
    Thanks,
    Emma

    df -k should have shown root mounted on md0
    e.g. on my machine
    # df -k
    Filesystem kbytes used avail capacity Mounted on
    /dev/md/dsk/d0 8260691 4366317 3811768 54% /
    what does /etc/system show for rootdev?
    # grep rootdev /etc/system
    * rootdev: Set the root device. This should be a fully
    * rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
    rootdev:/pseudo/md@0:0,0,blk
    Remember if this is a mirrored drive, when you boot from CD you may need to mount both sides of the mirror and make changes on both sides- otherwise the replication may not goes as expected.
    Actually, I have run into problems with the modifying one side of a mirror this way. In the past Sun tech support would recommend that I break the mirror and then rebuild it once the system is up and running. So in your case you may want to boot from CD, mount the 1st disk slice, edit /etc/vfstab AND /etc/system, boot into the OS and use the various meta commands to delete and rebuild the mirror- or at least maybe to drop and reattach the 2nd 1/2 of the mirror.

Maybe you are looking for

  • Trouble inserting photos

    Try as I may, I can't get photos that have been taken with an iphone held vertically to insert with the proper orientation - they go in rotated.  Photos taken with the phone held horizontally go in fine.  Any suggestions?

  • Airport card connection problems

    Running an iMac g4, 800mHz with an airport card installed, firmware v. 9.52. I can connect to an open Linksys network no problem but I can't connect to an encrypted (WEP) Airport Extreme network or an encrypted (WAP) Medialink network. In both cases

  • My new ipod do not switch from landscape to portret

    my new ipod do not switch from landscape to portret

  • Multilingual LOV based on a cookie chosen language

    I have a multilingual application where I have to show several LOV (AF:seletOneChoice) fields. The values shown by the LOVs depend on the language the user has chosen. If the user has chosen English, the LOV values must be shown in English. It he cho

  • Adding to Tables in CS4

    I'm having some issues with adding to tables in my files. These are pre-existing files i'm being asked to edit, and there are no table or cell styles set up. I feel dumb asking this, as i'm sure it's a simple answer, but tables are one area of Indesi