[SLE] Root passwd gone

From: Chaitanya Krishna A (icymist82_at_yahoo.com)
Date: 07/30/05

  • Next message: Sandy Drobic: "Re: [SLE] Root passwd gone"
    Date: Sat, 30 Jul 2005 11:51:24 -0700 (PDT)
    To: Suse Mailing List <suse-linux-e@suse.com>
    
    

    Hi,

    I wanted to change the file ownership of a directory in root, but by mistake I
    gave the following command
    # chown -R <username>: /
    but Ctrl-C'd after a few seconds, after realising what I have done.

    After this I haven't been able to login as root. So I followed the procedure at
    http://www.novell.com/coolsolutions/trench/15629.html (viz. put the first CD of
    SuSE, rescue system, modify the passwd and shadow files). After I logged in
    again as a normal user and tried to login as root, it was still asking me for
    the passwd.

    Then I again went into rescue system, and then mounted /dev/sda1 where the home
    is and then removed the x from the root line. Also I modified the shadow file
    so that root looke like this
    root::::

    After this I again rebooted the system and tried to login, now when I give su,
    it says the following.
    $ su
    su: cannot set groups: Operation not permitted

    Now I am not able to login as root into my machine. I am very badly stuck up.
    What can I do now?

    Regards,
    Chaitanya.

                    
    ____________________________________________________
    Start your day with Yahoo! - make it your home page
    http://www.yahoo.com/r/hs
     

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Sandy Drobic: "Re: [SLE] Root passwd gone"

    Relevant Pages

    • Re: Hardware
      ... My problem now is after installing Debian for the first time, ... write a user name, a user account name, login name and password. ... The root user can change all the other users' ... passwords by using the command "passwd username". ...
      (Debian-User)
    • Re: Hardware
      ... write a user name, a user account name, login name and password. ... Can you tell me how to bypass login name and password to enter Debian. ... The root user can change all the other users' ... passwords by using the command "passwd username". ...
      (Debian-User)
    • Re: [opensuse] login question.
      ... how can I login as su? ... I'm autologging in as normal user, and when I have to do administrative ... Additionally you can configure Sudo to allow you to become root without ... Note that the command to get a root shell from sudo is: ...
      (SuSE)
    • Re: [opensuse] network printer problem
      ... You could login as root, and go to the Printers tab, then Set Printer ... Or simply from the command line as root: ...
      (SuSE)
    • SUMARY: Cant login as root
      ... As a result, i was not able to log in as root, neither create a new ... Asunto: RE: Can't login as root ... > console. ... > If we log as any other user everythig is ok, but we cannot either do su-. ...
      (Tru64-UNIX-Managers)