Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Open Suse root password lost after old Admin left company Open Suse 12.3

  1. #1

    Question Open Suse root password lost after old Admin left company Open Suse 12.3

    I have no idea how to get to the place in grub to enter init=bin/bash

    I can boot into recovery mode but it seems useless

  2. #2

    Default Re: Open Suse root password lost after old Admin left company Open Suse 12.3

    Quote Originally Posted by bperrotta View Post
    I have no idea how to get to the place in grub to enter init=bin/bash

    I can boot into recovery mode but it seems useless
    I remember I watched a linux video in which it says if grub is not password protected you may get root access by modifying grub, something like adding "1" at the end of a sentence. But I can't remember the detail.

  3. #3
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,284

    Default Re: Open Suse root password lost after old Admin left company Open Suse 12.3

    Quote Originally Posted by bperrotta View Post
    I have no idea how to get to the place in grub to enter init=bin/bash

    I can boot into recovery mode but it seems useless
    Press e at boot menu find the line that starts with linux go to end of line (note it is a long line best to just press end key) enter space and the parameters press F10 to continue boot


    What do you men recovery mode is useless? in what way?? Changing root password. Yep if you don't know it you can't change it in that mode. it is ment to load with minimum drivers not to get around need to be root for system changes. init=bin/bash will get you where you want to go. easiest to run yast and change the password there but you can also use command line.

  4. #4

    Default Re: Open Suse root password lost after old Admin left company Open Suse 12.3

    Quote Originally Posted by bonedriven View Post
    I remember I watched a linux video in which it says if grub is not password protected you may get root access by modifying grub, something like adding "1" at the end of a sentence. But I can't remember the detail.
    Even if you boot to runlevel 1 (by adding "1" to the boot options), you still would have to enter the root password.

    But you can add "init=/bin/sh" to get into a minimal system without the need of any password. You should be able to change the root password then by just running "passwd".

    To do this in case of grub1 (recognizeable by an input line at the boot menu) just enter that at the boot menu.

    For grub2, press 'e' at the boot menu, search for a line starting with "linux" and append it to the end, then press 'F10' to boot.

  5. #5

    Question Re: Open Suse root password lost after old Admin left company Open Suse 12.3

    Can you be more specific?

    The only line I see with the word linux is "linux /boot/vmlinuz-3.7.10-1\-desktop

    It is very tedious to transfer copy by hand the whole thing.

  6. #6
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    4,029

    Default Re: Open Suse root password lost after old Admin left company Open Suse 12.3

    Quote Originally Posted by bperrotta View Post
    Can you be more specific?

    The only line I see with the word linux is "linux /boot/vmlinuz-3.7.10-1\-desktop

    It is very tedious to transfer copy by hand the whole thing.
    Yes, that is the line. Go to the end of it by pressing your END key, add a space, then type init=/bin/sh

    and then continue the boot.
    "Take a Walk on a Sunny Day, Greet everyone along the way, and Make Somebody Smile, Today"
    Gerry Jack Macks"Walk On A Sunny Day" GerryJackMacks.net

  7. #7

    Default Re: Open Suse root password lost after old Admin left company Open Suse 12.3

    Quote Originally Posted by wolfi323 View Post
    Even if you boot to runlevel 1 (by adding "1" to the boot options), you still would have to enter the root password.

    But you can add "init=/bin/sh" to get into a minimal system without the need of any password. You should be able to change the root password then by just running "passwd".

    To do this in case of grub1 (recognizeable by an input line at the boot menu) just enter that at the boot menu.

    For grub2, press 'e' at the boot menu, search for a line starting with "linux" and append it to the end, then press 'F10' to boot.
    Hi wolfi323,

    I just checked the video (linux basic courses) again, it is said when you add "1" or "single" at the end of kernel line, you would automatically login as root without need of any password. The speaker showed it on a CentOS in a virtualbox. The video is about 2 years old though.

    Has the policy changed for grub or it depends on the linux distribution? Grub is independent from distros right?

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Open Suse root password lost after old Admin left company OpenSuse 12.3

    On 2014-02-21 12:26, bonedriven wrote:

    > I just checked the video (linux basic courses) again, it is said when
    > you add "1" or "single" at the end of kernel line, you would
    > automatically login as root without need of any password. The speaker
    > showed it on a CentOS in a virtualbox. The video is about 2 years old
    > though.


    Never worked on openSUSE, AFAIR.

    > Has the policy changed for grub or it depends on the linux distribution?
    > Grub is independent from distros right?


    Grub doesn't matter here, it is the system.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  9. #9

    Default Re: Open Suse root password lost after old Admin left company Open Suse 12.3

    Quote Originally Posted by bonedriven View Post
    Has the policy changed for grub or it depends on the linux distribution? Grub is independent from distros right?
    Grub is distro independent, yes. (aside from specific patches that may have been added)
    But this is not a grub feature, but a feature of the init system (sysvinit, systemd). Grub only passes the command line over to the kernel.

    And the runlevel setup is of course distribution specific.
    I'm not sure atm how runlevel 1 was setup in earlier openSUSE versions, but in 13.1 (and I'm quite sure in 12.3 as well) it is just a symlink to rescue.target which needs the root password.
    From "man sulogin" (that's what rescue.target uses)
    Code:
    NAME
           sulogin - Single-user login
    
    
    SYNOPSIS
           sulogin [options] [tty]
    
    
    DESCRIPTION
           sulogin is invoked by init when the system goes into single user mode.
    
    
           The user is prompted:
    
    
                Give root password for system maintenance
                (or type Control-D for normal startup):
    
    
           sulogin  will  be connected to the current terminal, or to the optional
           tty device that  can  be  specified  on  the  command  line  (typically
           /dev/console).
    
    
           After  the user exits the single-user shell or presses control-D at the
           prompt, the system will continue to boot.
    According to that desription I would say that single user mode should need the root password in any case on any distribution (provided the same sulogin is used of course)
    Last edited by wolfi323; 21-Feb-2014 at 04:58.

  10. #10

    Thumbs up Re: Open Suse root password lost after old Admin left company Open Suse 12.3

    Thanks that worked like a charm. Now I need to figure out how to reset the password to nagios
    in order to utilize it to monitor my servers.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •