Find the answer to your Linux question:
Results 1 to 9 of 9
I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    52

    Question How do I make sudo act more like the debian sudo?

    I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    To enable root logins on Ubuntu, you just need to provide a root password, which you can do using sudo passwd root. This page tells you more about how to do it - and how to reverse it.

    You'd better not tell them over at Ubuntu Forums what you've done! They get very sniffy about unlocking the root account over there.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    52
    It didn't work

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Which part didn't work?
    Did you get an error when trying to change the root password?
    Did it not accept your new 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.

  5. #5
    Just Joined!
    Join Date
    Mar 2011
    Posts
    52
    it accepted the new password, but when I used sudo, the new password didn't work. it would only accept the old password

  6. #6
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Gotcha.
    That's because you still have sudo permissions.
    The link that hazel posted shows how to unlock the root account. You can now login to root to do admin work.
    If you want to change that behavior, you'll need to edit the /etc/sudoers file.
    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
    Mar 2011
    Posts
    52
    ok, so how do I do that?

  8. #8
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Quote Originally Posted by rm-rf View Post
    ok, so how do I do that?
    Some quick googling will give you lots of online tutorials for setting up and configuring sudo, but my personal favorite is the one found here:

    http://www.wlug.org.nz/SudoHowto
    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.

  9. #9
    Just Joined!
    Join Date
    Mar 2011
    Posts
    52
    Oh I think I understand now, so apparently the sudo command doesn't just act like the su command. Apparently on most distros it requires the administrators password, and not the root password.

Posting Permissions

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