Find the answer to your Linux question:
Results 1 to 9 of 9
HOW TO CREATE ROOT LOGIN IN LINUX. Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2013
    Posts
    8

    How to create root login in linux


    HOW TO CREATE ROOT LOGIN IN LINUX.

    Thanks

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,345
    There is already a root user after each install.
    And depending on the distribution, you need to define a password during that installation or there is a regular user who can escalate to root via sudo.

    If you want remote logins, then install openssh-server.

    Sent from my GT-I9505 using Tapatalk 4
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Sep 2013
    Posts
    8
    any deault password for root login

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    It might help if you indicate which distribution of Linux you are using. Some give root privileges to the primary user created, others require that you create a separate root account during installation. You haven't indicated which Linux nor whether you have installed it rather than using a Live CD so there really isn't much anyone can tell until you post some more info.

  5. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,345
    No default password. You either define it at install time or a user can escalate.
    If you dont know it, ask the previous admin or boot a livecd to reset the password.

    Sent from my GT-I9505 using Tapatalk 4
    You must always face the curtain with a bow.

  6. #6
    Just Joined!
    Join Date
    Sep 2013
    Posts
    8
    i'm beginner in linux. i have installed Red Hat Enterprise Linux Server release 5.7 (Tikanga) on Vmware 9.
    While installing Linux i have asked to create account name & password which can be used for root login but while login into root it shows as below...

    [sachin@localhost ~]$ login root
    Password:

    Login incorrect

    and also trying for sudo cammand it prompt.

    Login is not in the sudoers file. This incident will be reported.


    i trying for root login for installing Git.

    Thanks

  7. #7
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,345
    The RedHat installation asks for a root password.
    In that distribution, there is no sudo setup by default.
    Hence, if you dont know the root password you can either reset it via a boot CD,
    or just install it again and memorize the root password.

    On git installation:
    On redhat5, there is no git package in the default repository.
    But you can use your existing paid subscription to downlaod and install redhat 6.4 after you login to Red Hat | The World's Open Source Leader
    a) It is the current version
    b) rhel6 does have git in the default repository, hence you can install it by
    Code:
    yum install git
    You must always face the curtain with a bow.

  8. #8
    Just Joined!
    Join Date
    Sep 2013
    Posts
    8
    I know the password for which has asked while installing. i reinstalled it.
    Thank u irithori for ur help.... i'll go for rhel6 Thanks again for ur help

  9. #9
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Quote Originally Posted by sachein View Post
    sachin@localhost ~]$ login root
    Password:
    Once you're up and running with RHEL6, try this:
    Code:
    sachin@localhost ~$ su -
    Password: <enter root password>
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

Posting Permissions

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