Find the answer to your Linux question:
Results 1 to 4 of 4
how do i switch from root (#) to normal non-root prompt($). I'm new to linux...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    2

    from # to $

    how do i switch from root (#) to normal non-root prompt($). I'm new to linux

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,303
    Ubuntu doesn't use a root user by default so I can think of only two ways that you have arrived at the root prompt.

    1. You enabled the root user and logged in as root. In this case you will need to logout and log back in as a normal user.

    2. You ran the command "sudo -i" or similar in a terminal window, in which case you simply need to run the command "exit"
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    By default, you can use sudo with command which requires root privileges.
    Code:
    sudo <command>
    e.g.
    Code:
    sudo fdisk -l
    sudo work with user created during installation. For other users, you have to add those in sudoers file.

    Check more details here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined! Leppie's Avatar
    Join Date
    Feb 2010
    Posts
    72
    if you're in a recovery shell, try the following command:
    Code:
    telinit 2

Posting Permissions

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