Results 1 to 10 of 10

Thread: Root-User : Unset

  1. #1
    Join Date
    Oct 2010
    Beans
    103
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Root-User : Unset

    Hey guys, I've just read this post.
    A friend of mine has told me to set a root password and use root (f.e. switching to su in terminal and work with root rights instead).

    Is there any way to unset the root password? I know how to use sudo now.

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Root-User : Unset

    Yep, you can lock the root account password with:
    Code:
    sudo usermod -p '!' root

  3. #3
    Join Date
    Oct 2010
    Beans
    103
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Root-User : Unset

    Is this the exact same thing as after the installation of Ubuntu?
    Is there anything I should take care of?

  4. #4
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Root-User : Unset

    Quote Originally Posted by TheAnachron View Post
    Is this the exact same thing as after the installation of Ubuntu?
    Yes.

    Quote Originally Posted by TheAnachron View Post
    Is there anything I should take care of?
    Make sure that your user has full sudo rights. It's in the admin group & the sudoers file contains the following line: %admin ALL=(ALL) ALL.

    Code:
    groups
    Code:
    sudo cat /etc/sudoers

  5. #5
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Root-User : Unset

    The following will remove the root account password altogether, thereby making it like it was originally.
    Code:
    sudo passwd -d root
    * NOTE
    Nevermind this post. While it disables logging in to root using su, it does allow local terminal access to root without a password so probably NOT what you're looking for.
    Last edited by robert_pectol; October 14th, 2010 at 01:56 PM. Reason: updated info
    Rob

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Root-User : Unset

    Quote Originally Posted by robert_pectol View Post
    The following will remove the root account password altogether, thereby making it like it was originally.
    Code:
    sudo passwd -d root
    Nope, that deletes the password. By default the root account password is locked. See:
    Code:
    man passwd

  7. #7
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Root-User : Unset

    Yeah, I just realized that my suggestion allows LOCAL terminal logins to root without a password so definitely not how it is by default! I'll make a note on my post above.
    Last edited by robert_pectol; October 14th, 2010 at 02:02 PM. Reason: typo correction
    Rob

  8. #8
    Join Date
    Oct 2010
    Beans
    103
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Root-User : Unset

    Thanks guys, this helped me.

  9. #9
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Root-User : Unset

    You're welcome!


    Please mark this thread as [SOLVED].

    At the top of the page, click the "Thread Tools" menu, then "Mark this thread as Solved".

    Thanks.

  10. #10
    Join Date
    Oct 2010
    Beans
    103
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Root-User : Unset

    I did! Thanks again, really great help here.

Bookmarks

Posting Permissions

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