2015-06-01から1ヶ月間の記事一覧

SAMBA の基本的な設定

(1) ユーザの作成UNIX ユーザの作成。 # useradd test01 # passwd test01 ユーザー test01 のパスワードを変更。 新しいパスワード: よくないパスワード: 異なる文字が十分に含まれていません よくないパスワード: 簡単すぎます 新しいパスワードを再入力し…

audit を syslog に出力する方法

/etc/audisp/plugins.d/syslog.conf を以下のように変更して、auditd を再起動するだけ。 :: active = no★ここを yes にする direction = out path = builtin_syslog type = builtin args = LOG_INFO format = string

FTP コマンドの制御

FTP コマンドは以下のように存在する。http://www.iana.org/assignments/ftp-commands-extensions/ftp-commands-extensions.xhtml http://ja.wikipedia.org/wiki/FTP%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%AE%E4%B8%80%E8%A6%A7 実行できるコマンドは…

mail コマンドをワンライナーで実行

echo "xxxxx" | mail -s "xxxxx" root@localhost ^^^^^★本文 ^^^^^★件名

繰り返しコマンドを実行

echo test を繰り返し実行する。 出力先は、標準出力と、hoge.log となる。 # while true; do echo test |tee -a hoge.log; done;10 秒間隔にする場合は以下となる。 # while true; do echo test |tee -a hoge.log; sleep 10; done;