Results 1 to 3 of 3

Thread: su / root

  1. #1
    Join Date
    Dec 2006
    Location
    San Diego, CA
    Beans
    122
    Distro
    Ubuntu 16.04 Xenial Xerus

    su / root

    I made the mistake to go into su ( created a password for it). I then rebooted. Am I still in super user or how do I sign off as super user or how do I check to see if I am still using super user privileges.

    Thanks

  2. #2
    Join Date
    Oct 2008
    Location
    Tulsa,Ok
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: su / root

    close the Terminal window. This will end the root session.

    You can tell if you are root:
    Code:
    duane@duane-laptop:~$ su
    Password: 
    root@duane-laptop:/home/duane#
    top one not root, bottom one root. Top one I am looged in as duane on duane-laptop. Bottom one I am root logged on to duane-laptop. Also notice the dollar sign for normal user and number symbol for root.


    Disabling your root account


    If for some reason you have enabled your root account and wish to disable it again, use the following command in terminal...

    Code:
    passwd -l root
    -
    -
    Last edited by duanedesign; April 24th, 2009 at 04:30 AM.

  3. #3
    Join Date
    Dec 2006
    Beans
    1,482
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: su / root

    You'll only be root if you sign in as root, so if you just booted up normally and logged in with your normal username, you're not root, if you want to test, you can try making an empty folder or something in a root-only area like /usr

    If that fails, you are not root, all good, if you are, there's some wierdness happening and we'll have to further investigate.

    If you set a password for root, you may want to unset it, so that no-one can log in as root (although you'll still be able to use sudo, the default for ubuntu is no root password)

    http://blog.sushis-hideout.org/2008/...root-password/

    sudo passwd -l root

    That command will unset (lock) the root password.

    man passwd

    for more info on what exactly goes on
    Sharing Wifi Is Caring Wifi {o,o} Ubuntu Community Docs..
    |)__)
    -”-”-
    O RLY?

Tags for this Thread

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
  •