昨日:0 / 今日:1 / 合計:1852アクセス
tcp wrapper の設定
ローカルネットワークからの接続と某ホストからのftp 接続を許すように設定。/etc/hosts.allowは以下。 # # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # ALL: 192.168.0.7 localhost swat: localhost in.ftpd: hoge.example.com,192.168.0.0/255.255.255.0,127.0.0.1 /etc/hosts.denyは以下。 # # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # # The portmap line is redundant, but it is left to remind you that # the new secure portmap uses hosts.deny and hosts.allow. In particular # you should know that NFS uses portmap! ALL: ALL: spawn=(/usr/sbin/safe_finger -l @%h | /bin/mail -s deny-%d-%h yoshi) EXCEPT 192.168.0.7 swat: ALL sudoの設定
いちいちrootにsuせずともroot権限でコマンドを使いたいので、普段使ってるアカウントでsudoコマンドが使えるように設定。/etc/sudoersに以下を追加。 # User privilege specification #yoshi ALL=(ALL) NOPASSWD: ALL yoshi ALL=(ALL) ALL 上記の2行目にすると、sudo利用時にノーパスワードでするっといっちゃうのでコメントアウトし、パスワードを要求するように3行目を活かしとく。 SSHの設定
/etc/ssh_configは変更しなかった。Vine 2.6の環境から~/.sshをそのままコピーしたのみ。 GnuPGの設定
RPMパッケージをインストール。 > sudo apt-get install gnupg 後は、Vine 2.6の環境 |