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

Thread: [ubuntu] Logged in but no prompt

  1. #1
    Join Date
    Dec 2013
    Beans
    7

    [ubuntu] Logged in but no prompt

    I'm pretty new to using unix with vmware player but after logging in with the correct credentials I'm not getting a prompt. I can type but the text just shows up and hitting "enter" just goes to next line instead of submitting command. Any ideas how to fix this?


  2. #2
    Join Date
    Nov 2013
    Beans
    Hidden!

    Re: [ubuntu] Logged in but no prompt

    Hello
    You can try a : ctrl+c
    Bye

  3. #3
    Join Date
    Dec 2013
    Beans
    7

    Re: [ubuntu] Logged in but no prompt

    ctrl+c just seems to log me out and put me back at the login prompt

  4. #4
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    3,427
    Distro
    Xubuntu 16.10 Yakkety Yak

    Re: [ubuntu] Logged in but no prompt

    Maybe there's some command in your .bashrc (or whatever you use) that never returns. In that case you never get the prompt.

  5. #5
    Join Date
    Apr 2012
    Beans
    6,947

    Re: [ubuntu] Logged in but no prompt

    Agreed - maybe try getting into a default bash subshell

    Code:
    bash -norc -noprofile
    or a dash shell

    Code:
    sh

  6. #6
    Join Date
    Dec 2013
    Beans
    7

    Re: [ubuntu] Logged in but no prompt

    Where do I type this in? soon as the machine is powered on I get the login prompt and if I login in to it, I only get this weird screen where I can type but it doesn't respond to anything but ctrl-c:

    Last edited by kylepeyton; December 1st, 2013 at 04:04 PM.

  7. #7
    Join Date
    Apr 2012
    Beans
    6,947

    Re: [ubuntu] Logged in but no prompt

    OK so I was hoping that typing it exactly like you've done would drop you to a (working) subshell - apparently not. Sorry.

    You could boot into recovery mode and examine your /home/username/.profile and/or /home/username/.bashrc (or temporarily rename them)

    Hmmm... before you do that how about

    Code:
    exec bash -noprofile -norc
    This may be able to replace the hung shell

  8. #8
    Join Date
    Dec 2013
    Beans
    7

    Re: [ubuntu] Logged in but no prompt

    Still just no response when I type that command in. How do I boot up in recovery mode? Actually I figured that out, but now I'm in a "grub" shell and I'm not sure how to get to the dir so I can rename the login files
    Last edited by kylepeyton; December 1st, 2013 at 04:26 PM.

  9. #9
    Join Date
    Apr 2012
    Beans
    6,947

    Re: [ubuntu] Logged in but no prompt

    No you don't want to be in the grub shell, you want to get to the grub menu and then select "whatever x.x.x kernel (recovery mode)" - then you should get a menu where you can select "Drop to root shell". Usually you need to hold the 'Shift' key right after the BIOS screen to get the grub menu.

    If you want to make changes to files you will need to remount the filesystem with rw permissions once you're in the root shell

    Code:
    mount -o remount,rw /

  10. #10
    Join Date
    Dec 2013
    Beans
    7

    Re: [ubuntu] Logged in but no prompt

    You're being very helpful and I appreciate it. Now I just have the problem of not being able to log in to root through your instructions. It's asking for the root password and I don't know it.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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