Find the answer to your Linux question:
Results 1 to 9 of 9
senba@senba-desktop:~$ whoami senba senba@senba-desktop:~$ su root Password: su: Authentication failure senba@senba-desktop:~ i'm the one who installed the ubuntu in the machine then who is this root user pls do help ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    28

    Question root user

    senba@senba-desktop:~$ whoami
    senba
    senba@senba-desktop:~$ su root
    Password:
    su: Authentication failure
    senba@senba-desktop:~
    i'm the one who installed the ubuntu in the machine
    then who is this root user
    pls do help me out......

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,946
    If ya wanna get into root. Use the command

    sudo su
    then type your password and hit enter.

    EDITL: If I was you. I'd be sure to type exit when you are done.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  3. #3
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Try
    Code:
    su -
    (password)
    You do not need to specify root as the user.
    Keep in mind Ubuntu disables root logins and uses sudo instead. If you want to use root then you need to set it up yourself.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  4. #4
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Quote Originally Posted by rokytnji View Post
    If ya wanna get into root. Use the command



    then type your password and hit enter.

    EDITL: If I was you. I'd be sure to type exit when you are done.
    Roky, I'm not preaching at you bro but I think you should use the hyphen like I showed, typing "su" will prompt you for the root password and if given correctly you get root privileges. Typing "su -" and giving the correct password gives you root's privileges and environment.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  5. #5
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,946
    You know me. I'm still learning. I'm open to any preaching.


    EDIT wrote it down in my Useful commands document TBob.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  6. #6
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    There are a handful of ways to work in Ubuntu with a root shell without "enabling" the root user. Although I was originally annoyed by Ubuntu disabling it I've since come to appreciate the fact that I don't find myself running shells as root when 95%+ of my commands don't require root, and I've yet to accidentally run something as root

    The following will all more or less achieve a root shell
    Code:
    sudo -i
    sudo bash
    sudo su -
    Mike, you're dead right about the hyphen adding root's environment, but as far as I know regular users have the same $PATH as root in Ubuntu, so say fdisk will work instead of requiring /sbin/fdisk

  7. #7
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Quote Originally Posted by bigtomrodney View Post
    There are a handful of ways to work in Ubuntu with a root shell without "enabling" the root user. Although I was originally annoyed by Ubuntu disabling it I've since come to appreciate the fact that I don't find myself running shells as root when 95%+ of my commands don't require root, and I've yet to accidentally run something as root

    The following will all more or less achieve a root shell
    Code:
    sudo -i
    sudo bash
    sudo su -
    Mike, you're dead right about the hyphen adding root's environment, but as far as I know regular users have the same $PATH as root in Ubuntu, so say fdisk will work instead of requiring /sbin/fdisk
    HIya Bigtom!
    Thanks, this is very useful to know. I have used Ubuntu but it wasn't my machine, I guess I really should brush up on my distro slutting skills.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  8. #8
    Just Joined!
    Join Date
    Jan 2009
    Posts
    28

    Smile Try

    Thanks for all ur reponses.....
    'll try all n come back

  9. #9
    Just Joined!
    Join Date
    Jan 2009
    Posts
    47
    dude, open your terminal and do these:
    sudo passwd root rootpass
    sudo passwd -u root

    sudo will ask for your user password. use that. the rootpass set to whatever you want fory our password, and the -u root part unlocks the account.

Posting Permissions

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