Results 1 to 5 of 5

Thread: different root

  1. #1
    Join Date
    Sep 2012
    Beans
    94
    Distro
    Ubuntu 12.04 Precise Pangolin

    different root

    Hi All,
    what is different between sudo su - and sudo su,
    i notice that will be diff, root@snort:/# & root@snort:~#

  2. #2
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: different root

    sudo su - logs you in using root's environment, where as sudo su logs you in using your environment (.bashrc, graphical settings for programs, etc)

  3. #3
    Join Date
    Sep 2012
    Beans
    94
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: different root

    hi thanks.
    is there any different? i mean, for e.g : when try to install something

  4. #4
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: different root

    the difference is if you just sudo su you might end up with permissions problems, which means that you need to switch to a tty and fix them before you can log in

  5. #5
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: different root

    the recommended command to start a root session in Ubuntu is "sudo -i". It's the only one that correctly loads root's environment and behaves exactly as if you had logged in as root user.

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
  •