The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Root account expired ?

    Discussion in 'Linux Compatibility and Software' started by wearetheborg, Jun 2, 2007.

  1. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    I tried to log in as root:
    Code:
     $ su
    Password:
    Your account has expired; please contact your system administrator
    su: incorrect password
    
    :confused:
    What do I do ?
     
  2. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    Root account shouldn't expire like that. I can only recomend reinstalling your OS or contacting your distributor for support.
     
  3. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    That's fscking wierd. Never seen anyone put an expiry date on a root account.

    Which linux distribution do you use? Linux distributions typically have some support forums somewhere. (For instance, for Ubuntu, there are forums at ubuntu.com.) It might be worth doing a search there to see if someone else had the same problem.
     
  4. jeffsmythe

    jeffsmythe Notebook Geek

    Reputations:
    97
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    15
    boot into single user mode, then run passwd.

    To boot into single user mode, add a 1 or s (or init=1) to the end of the boot-line

    For example, using grub:

    kernel /boot/bzImage-2.6.20 root=/dev/hda3 1

    Note the "1" on the end of that line. Of course, your kernel image and root may need to be different.

    One things have booted, run passwd to change the root password. You should then make sure that the account is set to NOT expire in the future.
     
  5. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    But does that not require a root password ?

    http://www.cyberciti.biz/faq/grub-boot-into-single-user-mode/

    If the root account has expired, will it let me do that ?

    The OS is mandriva.

    Fortunately a couple of other users have sudo access. One option is to edit the inittab file as sudo and then boot into single user mode and run passwd.

    Given sudo access, any direct way of changing the password ? Note that the system has never allowed em to directly log n as root, I always have to log in as a user, and do a "su"
     
  6. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    It does not hurt to try single user mode.

    If other users can sudo and edit the system files, that's another good option. Better than sudo in fact since it does not require rebooting.