Linux Tips
出典: encom wiki
daisuke 2008年2月8日 (金) 13:22 (UTC)
目次 |
[編集] SELinux の動作を確認する
$ /usr/sbin/getenforce Enforcing
Enforcing の場合、SELinux が有効になっています。
[編集] SELinux の動作を停止する
# vi /etc/selinux/config
config を編集して
SELINUX=disabled
と記述(変更)します。
CentOS の場合「lokkit」でも設定できます。
[編集] CentOS でファイアーウォールを設定する
# lokkit
[編集] ディレクトリのみ chmod する
$ find . -type d -exec chmod a+x {} \;
[編集] ある文字列を含んでいるファイルを検索する
/dir 配下から word を含んでいるファイルを検索する場合です。
$ find /dir -print | xargs grep word /dev/null
