Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi all (again),.. I have another problem. I am running ubuntu linux on my laptop and hence, I am the sole user of it (hence, I am the administrator). I ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    2

    'su' gain root access in linux

    Hi all (again),..

    I have another problem. I am running ubuntu linux on my laptop and hence, I am the sole user of it (hence, I am the administrator). I assume that because I am the sole user of the OS, that I automatically have root access. However, I wanted to install 'ndiswrapper' to get my wireless card in my laptop working in ubuntu. I was following a guide to installing it and it read that it is important to get root access to install it. However, when i issues the command 'su', i was prompted for my password. I entered the password but I got a message saying 'su: authentication failed - sorry'. Does anyone know why this is? I use the same password for almost everything, so my password could not be wrong.

    Is there a (command) or a way to find out if you actually have root access?

    Thanks to you all in advance for taking the time to read/reply to my query.

    Thank you.


    Daniel.

  2. #2
    Just Joined! Chitty's Avatar
    Join Date
    Nov 2006
    Location
    Caracas, Venezuela
    Posts
    45
    when you have root access, you should read something like this:
    root@chitty-desktop:/home/chitty#
    instead of:
    chitty@chitty-desktop:~$
    Remember that your root password is not necessarily the same as your user password

  3. #3
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    In ubuntu, you normally use sudo:
    Code:
    someone@ubuntu $ sudo make install
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  4. #4
    Linux Newbie DeoXMAN's Avatar
    Join Date
    Jul 2005
    Location
    Azerbaijan, Germany
    Posts
    154
    root password is set during installation, so bad if you forgot it
    Karabakh - I will be back

  5. #5
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    root password is set during installation, so bad if you forgot it
    You dont have root password on Ubuntu. You use sudo
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  6. #6
    Just Joined! Chitty's Avatar
    Join Date
    Nov 2006
    Location
    Caracas, Venezuela
    Posts
    45
    Or maybe you haven't set the password for root... "As default Ubuntu has no password set for the root user..." http://www.ubuntux.org/how-to-change...word-in-ubuntu

  7. #7
    Just Joined!
    Join Date
    Jul 2006
    Posts
    3
    On Ubuntu it's sudo su instead of just su.

    But you can of course use sudo for all commands...


    Greetz,
    Eddy

  8. #8
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    if you wish to have a root user, try:

    sudo adduser root

  9. #9
    Linux User Oxygen's Avatar
    Join Date
    Jul 2004
    Location
    Hartlepool, England
    Posts
    392
    Quote Originally Posted by tpl
    if you wish to have a root user, try:

    sudo adduser root
    What the hell are you on about? Root is a user on all systems! It doesn't have a set password on *buntu is the reason you can't use it!

    If you just want root for the console, use sudo -i but if you need to set a password use "sudo passwd root" then enter your existing password, then the new password, then confirm the new password.
    Graham - You'd better Use Linux!

    I'm registerd Linux user #397030. What about you?

  10. #10
    Linux Newbie DeoXMAN's Avatar
    Join Date
    Jul 2005
    Location
    Azerbaijan, Germany
    Posts
    154
    Quote Originally Posted by Juan Pablo
    You dont have root password on Ubuntu. You use sudo
    ??? but if you do sudo, it executes command from root username. In Ubuntu you have root, but by default password is not set for it.
    Karabakh - I will be back

Page 1 of 2 1 2 LastLast

Posting Permissions

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