Recover locked root account

I first will admit: I am stupid stupid stupid for doing this...
My question is it possible to recover my root account if:
1) it has been locked with:
passwd -l root
which normally just locks the root account and should be undo-able by
sudo passwd -u root
2) my root login has been disabled with:
Defaults timestamp_timeout=0,rootpw
in my /ect/sudoers
so now i fully understand how to make a system completely void of an accessable root account
EVEN when i tried booting into single user mode, it prompts for my root passwd on boot but since i diabled root login, it seems this doesnt work either. 
So im reinstalling soon, unless there is a quick fix i cant think of.  help
P.S. dont try the above commands (together) at home, its baaad news kids

Edit /etc/passwd from a live CD and set the second field to 'x', then edit /etc/shadow and set the second the second field to blank.  That will set you root password to empty:  After that, reboot and login to a console as root and change the password as normal with passwd.
EDIT: Actually, all you need to do is remove the '!' from the front of the hash (second field) in /etc/shadow and the old password should work again.
Last edited by Bolts (2010-06-14 22:13:56)

Similar Messages

  • Locking root account causes account to expire

    If I lock the root account using passwd -l root, PAM prevents me from adding users or groups, saying that root's account has expired. This wouldn't be so bad, except that PAM continues to prevent me from adding users/groups even after I unlock the root account and create a new password for it. What is causing this, and how can I fix it so that I'm able to install hal, dbus, etc. and administer users and groups again?

    Okay, found a workaround... Using usermod instead of passwd should apparently work. For anyone having problems with this: first, use passwd --unlock to unlock the root account, and then usermod --lock to lock its password.

  • Root account locked out after 3 login attempts

    I've connected to a 280R (Solaris 9) machine through the console (null modem cable). After trying 3 failed login attempts, it reported that the root account has been locked out. When can I do now to re-enable it?
    Vincent

    The usual dance. :-)
    1. Put in a Solaris install CD
    2. "boot -s " at the "ok" prompt.
    3. mount /dev/c<your boot partition> /mnt
    4. edit /mnt/etc/passwd
    5. Reboot the system.
    6. login as root
    7. Set your password.
    8. write it on a post-it.
    9. place post-it on monitor.
    I'm kidding with steps 8 and 9.
    HTH,
    Roger S.
    PS - Happy T-day

  • Root account locked

    please tell me if the root account is locked and also
    unlocking it

    By default on a regular install on a Solaris system, the root login is definitely not locked. If your root login is locked, you can unlock it by:
    - booting from a Solaris install CD
    - mounting the root directory
    - modifying the /etc/shadow file and clear the second field (e.g. the crypted password field)
    - reboot
    You will now be able to login as root without a password. You should then immediately set the root password to something.

  • I am trying to activate root account on my MAC.  The directions I've seen do not match what is in System Preference for Accounts or Users

    I am trying to activate the root account on my new Mac Book Pro.  The instructions that I have found do not match what I have in System Preferences.  What is the process when using Users and Groups.  When I click on Join the Network Account Server- Open Directory Utility I don't see a option to  activate root user as the instructions say at http://support.apple.com/kb/HT1528
    OS X Lion
    From the Apple menu choose System Preferences....
    From the View menu choose Users & Groups.
    Click the lock and authenticate as an administrator account.
    Click Login Options....
    Click the "Edit..." or "Join..." button at the bottom right.
    Click the "Open Directory Utility..." button.
    Click the lock in the Directory Utility window.
    Enter an administrator account name and password, then click OK.
    Choose Enable Root User from the Edit menu.
    Enter the root password you wish to use in both the Password and Verify fields, then click OK.

    Do you mean you cannot select "Enable Root User" from the "Edit" menu as shown below?
    Why do you think you need to enable the root user? I've never needed it in the history of OS X.

  • How to unlock Root Account in non-global zone on Solaris 10 Branded Zone

    Hello All,
    I have a phsical x86 server running Solaris 11. On top of that, I have 3 Solaris 10 branded zones configured. Due to security policy the root account has been locked by 5 failed login attempts.
    Is there a way by which I can unlock root account in non-global zone.
    I have the root access of global zone.
    Pls help as these are production servers.
    Regards

    Hey,
    It worked. Actually i forgot to save the file.
    I changed the /<zonepath>/root/etc/shadow
    Removed *LK* & then from global zone did zlogin -l root zonename
    Thanks  lot.

  • Root account Lockout

    Hi all,
    since a few weeks, my root account lock every 5 days but I can't figure out why.
    I've look in log file but can't see anything that help me figure out what or why the root account lock.
    My question is, where can I look to figure out what lock me root account or is there a log that I need to activate to be able to see what's hapening to the root account.
    Thx all.
    Doug

    Does your system log all root login attempts via syslog to auth.log or something similar? If so, do you see any attempts by any user to login? If it is every five days, do you have any scheduled jobs that run some process that tries to log in as root but is failing? Are you running BART or something similar which checks manifests - perhaps you have malware that is editing your /etc/shadow and locking your root for malicious purposes.

  • Determine the Root Account

    How can I determine which account is the root account? After upgrading computer and moving data via time machine, I have two accounts listed as admin, however the new one I created on new computer does not act like root account.

    kflau,
    As Nerowolfe suggested keep the spare admin account. Test it for functionality occasionally and keep it in reserve. If your main admin should 'break' you may be able to use the reserve to fix it, or do some other admin task. You should also use a non admin as your day to day browser login. You can switch stuff about using the "Shared" user.
    Root is a an admin but more than, and it is best kept in the cupboard. I do on rare occasions see apps telling me when in an admin,'You don't have enough privileges to do "X" and have resorted to root, but that is rare and probably idiosyncratic to the procedure concerned.
    Try this; open the Utility app, 'Directory Utility". Click on the lock and enter an admin name and password. Put your mouse on 'Edit" tab and look at the drop down. If it says , 'enable root', then root is disabled. If it says 'disable root' then root is currently enabled. To enable root you enter a password for it. You can give root a password (and any other user for that matter) by booting from the install disk, navigating to the utilities menu (choose a language click to install but don't go the full distance) For most users assign PWs in the user pane in Sys Prefs and for root , in said app Directory utility.
    There have been cases reported here where root , and maybe other users have been effectively lost that's once in a blue moon.

  • How can I recover my old account with a new one?

    Hi, my hotmail account it was hacked, I can't have acces to my adobe account anymore.
    How can I get acces to my old account with a new Adobe ID?
    I'm already subscribed to creative cloud and I can't have acces to my account and upgrade my products.
    what can I do?
    Thanks

    Thanks Romshina
    I read the link you send me and thanks, but the thing is that I still can't get into my Adobe Id, because when I try they ask me to reset my password in an email they will send me to my old account and there is the problem, because I don't have acces to that old acount, [email protected]
    now this is my new email, because the las one it was hacked and I just can't get back to it.
    So I would like to have access to my account and update this new email account, to have acces to my CC account.
    Thanks
    Date: Fri, 27 Dec 2013 06:51:15 -0800
    From: [email protected]
    To: <Removed by Moderator>
    Subject: Re: How can I recover my old account with a new one? How can I recover my old account with a new one?
        Re: How can I recover my old account with a new one?
        created by Romsinha in Adobe Creative Cloud - View the full discussion
    Hi Guillermo Castellanos,
    Please refer the knowledge base article: http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sig n-faq.html.
    Regards,
    Romit Sinha
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5959347#5959347
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: How can I recover my old account with a new one?
    To unsubscribe from this thread, please visit the message page at Re: How can I recover my old account with a new one?. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe Creative Cloud at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • System failure during locking GL account 5555 by 13113910 Message no. 8I076  and the time of saving out going excise invoice.

    Hi SAP Gurus,
    We are configuring the CIN Settings for our client and at the time of testing, while saving the Out going excise invoice the system is giving the error as “Balance in Transaction Error” and when pressed enter the system displays the error as “ system failure during locking GL account 5555 by 13113910.”
    We have configured Out going excise duty condition types  in the SD pricing procedure
    and
    also maintained the same condition types  as mentioned below  in the path IMG / LOGISTICS GENERAL  / TAX ON GOODS MOVEMENT  /  INDIA / BASIC SETTINGS/ DETERMINATION OF EXCISE DUTY / MAINTAIN EXCISE DEFAULTS
    under the headings
    AR BED Cond – JEXP
    AR Cess Cond – JECS
    ECS AR – JHEC
    And also maintained the settings in the Path IMG / LOGISTICS GENERAL  / TAX ON GOODS MOVEMENT  / INDIA  / SPECIFY  EXCISE ACCOUNTS PER  EXCISE  TRANSACTION and also in SPECIFY G/L ACCOUNTS  PER EXCISE TRANSACTION .
    But still the above mentioned error is comming.
    Note : error in not coming when I am removing the  JHEC condition type  from the path IMG / LOGISTICS GENERAL  / TAX ON GOODS MOVEMENT  / INDIA / BASIC SETTINGS/ DETERMINATION OF EXCISE DUTY / under the heading ECR AR, But we need the JHEC(ie. Higher education cess) also in out going excise invoice.
    Please let me know what is the issue and how to resolve it.
    Thanks & Regards
    Shashi

    Dear We faced the same issue and  almost for 20 days to  get it resolved.
    For this kind of error firstly Check have you activated the Liable for AT1 indicator in(IMG>>Log.General>>Tax on goods Movement>>India>>Basic Settings>>Maintain Excise registrations)
    Also Have you assigned Proper GL account in (IMG>>Log.General>>Tax on Good Movement>>>India>>>Account Determination>>Account determination per Excise transaction type.
    Here pl check the relevant GL has been assigned for
    1.RG23A BED(for Both incoming and outgoing excise invoice  updations against your ETT)
    2 RG23C BED, (for Both incoming and outgoing excise invoice updations against your ETT)
    3 .OFF SET,(for Both incoming and outgoing excise invoice  updations against your ETT)
    4 MODVAT.CLEARING, (for Both incoming and outgoing excise invoice updations against your ETT)
    5 PLA BED& AED & SED,(for Both incoming and outgoing excise invoice updations against your ETT at the time of utilizations)
    6 PLA CESS(for Both incoming and outgoing excise invoice updations against your ETT at the time of utilizations)
    7 CENVAT ON HOLD(for Both incoming and outgoing excise invoice updations against your ETT at the time of utilizations)
    8.CENVAT SUSPENSE(for Both incoming and outgoing excise invoice updations against your ETT at the time of invoice posting)
    9.PLA ON HOLD((for Both incoming and outgoing excise invoice updations against your ETT at the time of TR6c)
    10. CENVAT REVERSAL(For cancellations vs ETT)
    11. RG23A ECS(for Both incoming and outgoing excise invoice  updations against your ETT)
    12. RG23C ECS(for Both incoming and outgoing excise invoice  updations against your ETT)
    13. PLA ECS(for Both incoming and outgoing excise invoice  updations against your ETT )
    14. RG23A AT1(check this more carefully)
    15. RG23C AT1(check this more carefully)
    16. PLA AT1(check this more carefully)
    Hope this helps you...
    Phanikumar

  • How can I transfer the root account on my computer to a regular account?

    Not sure if this in the correct category, but anyway...
    Back in October 2010, I installed a Java update or something on my regular account, and it broke the account for some reason. I had no other account to use except for the root user that I enabled previously (just for testing). I logged into it and used it as my regular account, checking every so often to check if my regular account fixed itself. Sadly, it didn’t (at the time), but after a while, I upgraded my computer to Snow Leopard (I was previously running Leopard), I found that my old account finally fixed itself. Immediately, I attempted to copy over all of my files from the root account to the other account. I went onto the account, and it seemed to be a fresh account, so I assumed that it didn’t register the account files as legitimate and I guess it made it into a new account. I gave up after fiddling with it for a bit. To this day, I’m still using the root user as my main account, but a lot of things are broken (like Spotlight, Mail search, some other things) and I’d just like to know a clean way I could easily transfer all of the stuff from the root user to my old account (including all of the Library files and such). Please don’t say “You shouldn’t have used the root user because it’s really dangerous,” or whatever. I’ve been responsible with it for almost 2 years and I don’t think I could’ve done anything else. Thanks for any help.

    Its doable with Terminal. Log into your new userfolder in the /Users/ folder and open Terminal and say:
    whoami
    This is the owner of your newly transferred files.
    Log into your root account and Launch Terminal. You will use the scp (secure copy) command to copy your files over to the new userfolder, replacing PathToNewFolder with the path to your new folder:
    cd /PathToNewFolder
    scp -r /private/var/root/* .
    The copied files will all have ownership of root account, so you will then set ownership of all the files to your new username that you remember from above, replacing "NewName" with your new username:
    $USER=NewName
    find . -exec chown $USER:admin {} \;
    find . -type d -exec chmod 750 {} \;
    find . -type f -exec chmod 640 {} \;
    chmod 755 Library
    find Library -type d -exec chmod 755 {} \;
    find Library -type f -exec chmod 600 {} \;
    chmod 755 Library/Autosave\ Information Library/Application\ Support Library/Keychains Library/Application\ Support/Terminal
    chmod 644 Library/Preferences/QuickTime\ Preferences Library/Keychains/* Library/Favorites/* Library/Caches/com.apple.preferencepanes.cache Library/Caches/com.apple.preferencepanes.searchindexcache
    chmod 755 Public ~/Sites
    chmod 733 Public/Drop\ Box
    find Sites -type d -exec chmod 755 {} \;
    find Sites -type f -exec chmod 644 {} \;
    Then you can login to your new account with all your stuff hopefully intact. If anything doesn't work respond here and it can be fixed.

  • I have two apple accounts, but can only access one. I did all the steps to recover the older account's password but nothing worked. I need to access the older account to update apps. Also would there be a way to just combine both accounts?

    I have two apple accounts, but can only access one. I did all the steps to recover the older account's password but nothing worked. I need to access the older account to update apps. Also would there be a way to just combine both accounts?

    Were you able to reset the account's password ? If not then how did you try to get it reset e.g. http://iforgot.apple.com (which would have sent it to the rescue email address if you have one on that account) ? You can also try contacting iTunes Support in your country to get it reset : http://support.apple.com/kb/HT5699
    And no, accounts can't be merged nor content transferred between accounts.

  • How to allow users to launch SMC; login to SMC without root account

    I've very familliar with how to create accounts and assign members to groups and assign privliges in Solairs 10 using SMC. I want a user to review the audit logs using the SMC console since the logs are GUI but I don't want the user to use the root account to login to SMC. I know the user can use the su command but I can only login with root after typing su and then launch SMC.
    Bottom line what is the best way a user can use the SMC console without having the root password to execute SMC and then login to SMC and view the audit logs?
    A million thanks
    John

    I found the best solution is to use a Role Based Access Control (RBAC). Using SMC as root go the the Role Icon and setup a Role using the wizzard. Next have the user login to the system, go to the terminal and type:
    /usr/sadm/bin/smc &
    The individual user will be prompted to login with his specific user name and password and then prompted to use the Role Login Name and Password you provided in the above paragraph.
    Now the user can perform SMC functions without the need for root.

  • HT5787 If i know email ( but i dont have acces to it ) and i dont have secret questions how can i recover my icloud account ?

    If i know email ( but i dont have acces to it ) and i dont have secret questions how can i recover my icloud account ?
    I'n my company ( pawn shop ) i hope i transleted fine , i bought an iphone wich it seems to be ok at the first time.
    That was on 26.11.2013 ( as can be seen in my pawn contract and billing ) . after 2 weeks i found a client to buy my second hand iphone and the i saw my mistake it is icloud blocked i need that password so i can reset the iphone to sell it. how can i manage this problem ? i can provide all my billings, contracts, society data everything.

    If you know the primary email linked to the account but do not have access to it or the answers to the security questions, then the next best thing to do is call Apple at 800-275-2273 and ask for Account Security.  They will ask you for two pieces of information from the account in order to unlock it.  The options are usually the security questions (each question counts as one piece), the credit card linked to the account, and either a device serial number or device verification code that they will send you.
    After this verification is complete they can send the reset link for your password to any email you choose.  Please be aware that if they verify you with something other than two security questions, there is a 24 hour wait before the email arrives.
    Good luck!

  • How can i recover my icloud account

    Is there a way to recover my icloud account?

    More detail would be nice, I have a feeling that you were editing something and you may have turned something on or off, you say recover, as in your backup is gone, and if so did your phone reset?
    Once more information is provided I can possibly provide more info.
    Best of luck!

Maybe you are looking for

  • Terrible delivery and customer service

    My fridge broke so I went to the best buy in Roseville CA to get a new one on friday 10/17/14.  Found an open box one that my wife and I liked and negotiated a deal for about $1887 total (that included 5 yr geed squad).  They say it will be delivered

  • Customization comparision - Any other ways?

    Hi Recently, I have copied my production system 500  (SAP_CUST) customization to DEV 330 client. My master customization client in DEV is 100. I want to overwrite 100 with 330 (which has the latest customization settings of PRD). Now my DEV 330 is re

  • Permissions error while trying to install the Front Row update.

    What would be the cause of this?

  • Windows 8.1 onedrive error 0Xd0000022

    buongiorno a tutti, after a migration at windows 8.1 I ve an issue when i try to join at onedrive using Microsoft account. after insert a code i received this error: 0Xd0000022. Probably this occurred because I am logged as a domain user (my PC are i

  • Problems with partitioning

    After partitioning my SSD MachintoshHD my system won't reboot. I installed the latest TimeMachine Backup and the partition exists now - but can't be used by Boot Camp to install the Win7 copy. I am using a MacMini (late 2012) i7. Can you give me a hi