sudo のインストール

Debian

初めて sudo を使ってみる。

インストール

ude:~# apt-get install sudo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnfsidmap2 libevent1 librpcsecgss3 libgssglue1 nfs-common
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  sudo
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 180kB of archives.
After this operation, 438kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org lenny/main sudo 1.6.9p17-2 [180kB]
Fetched 180kB in 0s (451kB/s)
Selecting previously deselected package sudo.
(Reading database ... 10259 files and directories currently installed.)
Unpacking sudo (from .../sudo_1.6.9p17-2_armel.deb) ...
Processing triggers for man-db ...
Setting up sudo (1.6.9p17-2) ...
No /etc/sudoers found... creating one for you.
ude:~#

設定

vipw と同様、visudo を使う
ude:~# visudo

実行

asunari@ude:~$ sudo ls

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.

[sudo] password for yasunari:
yasunari@ude:~$
次からはパスワード無しに実行可能。まぁ設定にもよるが。



linuxrc をみる
ハックの記録
LinkStation/玄箱 をハックしよう

LS-XHL 1.04β と LS-CHL 1.21 との比較

Copyright (C) 2003-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市