Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Hi everyone i am using ubuntu 8.4 hardy ubuntu i dont know what my root password is i always use client account but i need to use root now actually ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    64

    [SOLVED] I cant change passwords?

    Hi everyone
    i am using ubuntu 8.4 hardy ubuntu
    i dont know what my root password is
    i always use client account but i need to use root now
    actually i know the password but it isnt work

    i have tried
    system>administration>users and groups
    but i could do anyway

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Ubuntu doesn't set a root password by default. Everything requiring root privileges is done using "sudo" and the regular user's password.

    If you need to be able to log in as root, you need to set the root password first. You can do this with:

    Code:
    sudo passwd root
    Enter Password: <enter your user password>
    New UNIX Password: <enter desired root password>
    Password set.
    Then log in as root with:
    Code:
    su <enter>
    Password: <enter root password>
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    There's also this little trick:

    sudo su

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    ...in addition to what the others have posted, you can check this short article regarding su vs sudo for more information:

    http://www.linuxforums.org/forum/ubu...in-ubuntu.html
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    Well, that's more about Ubuntu's usage of sudo, doesn't really explain the difference between su and sudo...

    ...the largest is that sudo does not adjust the environment variables from the user running it to root's, which su does (mostly). This is why Ubuntu has to add the sbin dirs to user paths in order to make sudo run smoothly. In other distros, running something like sudo lspci will still come up with a bash "command not found" error, you'd have to actually run su to get in there and run sbin commands. IOW, sudo runs commands with roots permissions in the user's environment.

  6. #6
    Just Joined!
    Join Date
    Nov 2008
    Posts
    64
    i have done all of your says but i want to be root when ubuntu open
    i wrote username :root
    and then i wrote the password but it didnt work

  7. #7
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Quote Originally Posted by muhammedda View Post
    i want to be root when ubuntu open
    Note that it's generally a very bad idea to always log in as root. I'm not even sure why anyone would ever need to do this.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  8. #8
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by muhammedda View Post
    i have done all of your says but i want to be root when ubuntu open
    i wrote username :root
    and then i wrote the password but it didnt work
    I'm going to agree with ozar and say that this is a monumentally bad idea. What is it that you're trying to accomplish? I'm sure there's a way to do it without performing your everyday tasks as root.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  9. #9
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    Ozar's right. The "always log in as admin" is a (until recently) Microsoft mentality that undermines the security of any computer running any operating system. Only certiain tasks require administrative (root) rights and only when running a series of those specific tasks should anyone consider logging in as root, and with su, that can be effectively done from the user prompt.

  10. #10
    Just Joined!
    Join Date
    Nov 2008
    Posts
    64
    i cant use many files like windows for example i want to edit crontab on gnome but it gives me error

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