Find the answer to your Linux question:
Results 1 to 7 of 7
Hi When i type 'su' in single user mode, I get sh-3.2#user root does not exist And when i try to change the passwd in single user mode by sh-3.2#mount ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6

    [SOLVED] Cannot 'su'

    Hi

    When i type 'su' in single user mode, I get
    sh-3.2#user root does not exist

    And when i try to change the passwd in single user mode by
    sh-3.2#mount -o remount, rw /
    sh-3.2#passwd
    passwd:cannot identify you!

    Also before entering into single user mode it prints:
    MAKE DEV: no such user as root.
    MAKE DEV: no such user as root.

    id: cannot find name for user id 0

    I have dual boot windows xp and Fedora 8. I am very new to linux.

    PLease help me.

  2. #2
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    try 'whoami' on single user mode. I m not sure ( as I m also a newbie) but u r logged in as root only.

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    1
    Hi,

    try below link, it discusses similar issue as you have mentioned.
    justlinux.com/forum/archive/index.php/t-110510.html

  4. #4
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    which Linux OS are u using

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Single User Mode boot up with full administrative privileges and there is no need to execute su command in single user shell.
    Does machine boot up fine in default mode, 3?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    I tried the same thing in Fedora 10 , but results were noraml. SU makes me root, whoami in sh shows root.

  7. #7
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6

    Thumbs up Hurray!

    Thanks guys.. for some reason i was not able to post any replies. But now i am


    I finally got the issue solved. The uid for the user root was missing. I initially disabled the SELINUX and then edited the /etc/passwd file to include root uid.

    Then i was able to login into the system

    Thnks all of you

Posting Permissions

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