画面は青かった。

・ワ・)うえてしぬのだ

Debianでsudo

CentOSと違ってデフォルトで入っていないのでメモ。

root@debian:~# visudo
-bash: visudo: command not found

sources.listを編集。
DVDからのパッケージ取得を無効にする。

root@debian:~# vi /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 7.2.0 _Wheezy_ - Official amd64 DVD Binary-1 20131012-14:05]/ wheezy contrib main

# deb cdrom:[Debian GNU/Linux 7.2.0 _Wheezy_ - Official amd64 DVD Binary-1 20131012-14:05]/ wheezy contrib main

deb http://ftp.jaist.ac.jp/debian/ wheezy main
deb-src http://ftp.jaist.ac.jp/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib

# wheezy-updates, previously known as 'volatile'
deb http://ftp.jaist.ac.jp/debian/ wheezy-updates main contrib
deb-src http://ftp.jaist.ac.jp/debian/ wheezy-updates main contrib

sudoインストール

root@debian:~# apt-get install sudo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sudo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 842 kB of archives.n
After this operation, 1,882 kB of additional disk space will be used.
Get:1 http://ftp.jaist.ac.jp/debian/ wheezy/main sudo amd64 1.8.5p2-1+nmu1 [842 kB]
Fetched 842 kB in 0s (31.3 MB/s)
Selecting previously unselected package sudo.
(Reading database ... 24605 files and directories currently installed.)
Unpacking sudo (from .../sudo_1.8.5p2-1+nmu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up sudo (1.8.5p2-1+nmu1) ...

visudoして作業用ユーザでsudoできるよう定義を追加する。

erudot ALL=(ALL:ALL) ALL

確認

erudot@debian:~$ sudo ifconfig

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 erudot: