内容へ移動
heavyhandの実験室
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
howto:linux:ユーザーディレクトリのホームページが表示できない
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== howto:Linux:ユーザーディレクトリのホームページが表示できない ====== ===== 症状 ===== * /home/tuser/public_html/test.html をブラウザで開こうとすると Forbidden You don't have permission to access /~tuser/test.html on this server. と表示される。 ==== 対策1 ==== === パーミッションの変更 === == /home/tuser のパーミッションを確認 == <code bash> >ls -l drwx------ 2 root root 16384 5月 10 22:18 lost+found drwx------ 5 tuser tuser 4096 6月 18 09:18 tuser </code> == /home/tuser のパーミッションを701に変更 == <code bash> >chmod 701 tuser drwx------ 2 root root 16384 5月 10 22:18 lost+found drwx-----x 5 tuser tuser 4096 6月 18 09:18 tuser </code> ==== 対策2 ==== === SELinuxラベルを追加 === == /home/tuser/public_html にラベルを追加 == <code bash> >restorecon /home/tuser/public_html >restorecon -R /home/tuser/public_html </code>
howto/linux/ユーザーディレクトリのホームページが表示できない.txt
· 最終更新: 2015/12/17 20:33 by
dokuroot
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ