Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
I am running ubuntu 11.04 on an hp pavilion 742n. When i installed ubuntu i only installed one user on so my password is the root password Well everytime i ...
  1. #1
    Just Joined! champ_weller's Avatar
    Join Date
    Sep 2011
    Location
    ohio
    Posts
    90

    root password problems

    I am running ubuntu 11.04 on an hp pavilion 742n. When i installed ubuntu i only installed one user on so my password is the root password Well everytime i ran the sudo command it asked for the password and it worked perfectly well i go to make a directory in the /usr/games directory and my root password wont work at all now what do i do

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    How did you try to create the directory? Were you using a terminal to create a newdirectory like:

    sudo mkdir /usr/games/newdirectory
    If you used the terminal as above, was there any warning/error message?

    or were you doing it from the file manager? No reason sudo would not work in the example above.

  3. #3
    Just Joined! champ_weller's Avatar
    Join Date
    Sep 2011
    Location
    ohio
    Posts
    90
    i did it exactly as you had it above in terminal and when i put my password in it didnt say anything but it did not make the directory but when i tried to make myself root with su and i put my password in i recieved the message "su: Authentication failure
    "

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Quote Originally Posted by champ_weller View Post
    when i tried to make myself root with su and i put my password in i recieved the message "su: Authentication failure"
    Does this error only occur when trying to use su to gain root access?(switch user accounts)
    Or can you still use the sudo command?(super user do)
    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.

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Location
    Jamshedpur.
    Posts
    2
    You can't use `su` to alivate yourself as root user in Ubuntu, by default root user is locked. You need to set it's password to login or use su to be as root.

  6. #6
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Right. Which is why I was asking if that was the issue.
    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.

  7. #7
    Just Joined!
    Join Date
    Jul 2008
    Location
    Jamshedpur.
    Posts
    2
    it's not an issue, it's a normal behavior. When you after installing first time open the terminal, you can read something about it.

    you can set login password for root using `$ sudo passwd root`,
    after this you will be able to login as root and also use the su command.

  8. #8
    Just Joined!
    Join Date
    May 2007
    Posts
    15
    Quote Originally Posted by enitink View Post
    it's not an issue, it's a normal behavior. When you after installing first time open the terminal, you can read something about it.

    you can set login password for root using `$ sudo passwd root`,
    after this you will be able to login as root and also use the su command.
    Alternatively you could use 'sudo su'. I prefer not to create the root user but if I am doing something that requires me to be root for an extended period that's what I use.

  9. #9
    Just Joined!
    Join Date
    Sep 2010
    Posts
    1

    No need to set root password

    My dear friend,
    As you know there is no default root password for Ubuntu.But the installed user have the full privilege of root.We use the sudo command for getting the root power.So it is not necessary to set the root password.It is not recommended by Ubuntu to set it because of some valid security reasons.You can perform all the jobs that can be done by root with this simple sudo command at the very beginning of all terminal commands that require permission.In your case you can create the folder Games in the usr/games folder by just changing into the same folder through terminal by the cd command.And while inside that folder use the command

    sudo mkdir folder_name

    Now it will ask for your password(not the root password).Enter the password and you are done.

    Note:-Only the installed user can use the sudo command unless other users are added by the installed user into the sudoers file.
    Last edited by freesoftware; 10-14-2011 at 07:48 AM.

  10. #10
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,789
    Quote Originally Posted by SeanGee View Post
    Alternatively you could use 'sudo su'. I prefer not to create the root user but if I am doing something that requires me to be root for an extended period that's what I use.
    The other option is to use "sudo -i"
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

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
  •  
...