Friday, 21 October 2011

Superuser mode (SU)

  • What is Superuser Mode?: In one word, it gives complete access to your system. A normal user has only limited privileges, but a superuser has no limits.
  • How to enter Superuser mode?:
    1. Open a Terminal window.
    2. Type "sudo su" - This will prompt for the current user password and will give you administrative privileges for all commands entered here after on the terminal.
  • Examples: (Enter the command in SU mode on the terminal window)
    • Launch the browser in superuser mode to modify root files:
      • Ubuntu: nautilus --browser <path>
        Eg: nautilus --browser /etc
      • Xubuntu: thunar <path>
        Eg:
        thunar /etc
    • Open a file in superuser mode:
      • Ubuntu: gedit <filepath>
        Eg:
        gedit /etc/fstab
      • Xubuntu: mousepad <filepath>
        Eg:
        mousepad /etc/fstab
Note:
  • SU mode is not recommended if you have no idea what you are doing :-)
  • You can use "sudo su" and enter supervisor mode instead of prefixing "sudo" to each command

No comments:

Post a Comment