Install Sudo

From OpenFSG

Jump to: navigation, search

Contents

Installing and using SUDO

Introduction

Sudo (su "do") allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.


Installation

  • Install ipkg
  • Make sure you have an internet connection
  • Log on and su to root
/ # ipkg install sudo
Installing sudo (1.6.9.13-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/vt4/cross/stable/sudo_1.6.9.13-1_arm.ipk
Configuring sudo
Successfully terminated.
  • After installing, alter the file /opt/etc/sudoers
/ # vi /opt/etc/sudoers
  • Add the following line, replacing <username> with your real username
<username> ALL=(ALL) ALL


Usage

  • Login as a user with sudo-rights
  • Execute some commands which require root-access
sudo ipkg install <package>
  • The system will ask your password and executes the command after a succesfull login


Extra

  • The first time you'll use SUDO, you'll get an extra message:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
Personal tools