Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
アクセス制御リストのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
アクセス制御リスト
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:セキュリティ]] [[en:Access Control Lists]] [[ru:Access Control Lists]] アクセス制御リスト ('''A'''ccess '''C'''ontrol '''L'''ist, ACL) はファイルシステムに柔軟性のあるパーミッション機構を追加します。{{ic|UNIX}} のファイルパーティションを補助する形で設計されています。ACL を使うことであらゆるディスクリソースのパーミッションをあらゆるユーザーやグループに与えることが可能です。 == インストール == 必要パッケージである {{Pkg|acl}} は [[systemd]] の依存パッケージであるため、既にインストールされているはずです。 == 設定 == === ACL の有効化 === ACL を有効にするには、ファイルシステムを {{ic|acl}} オプションでマウントする必要があります。[[fstab]] を使えばオプションを永続化させることができます。 ファイルシステムのデフォルトマウントオプションによっては {{ic|acl}} オプションが既に有効になっているかもしれません。[[Btrfs]] ではデフォルトで有効であり、ext ファイルシステムでも有効になっていることがあります。以下のコマンドを使って ext* でフォーマットするときのパーティションのオプションを確認してください: {{hc|# tune2fs -l /dev/sd''XY'' <nowiki>|</nowiki> grep "Default mount options:"| Default mount options: user_xattr acl }} そしてデフォルトのマウントオプションが上書きされていないかも確認してください。{{ic|/proc/mounts}} の適当な行に {{ic|noacl}} と記述されていればオプションが変更されています。 ファイルシステムのデフォルトマウントオプションは {{ic|tune2fs -o ''option'' ''partition''}} コマンドを使って設定できます、例えば: # tune2fs -o acl /dev/sd''XY'' Using the default mount options instead of an entry in {{ic|/etc/fstab}} is very useful for external drives, such partition will be mounted with {{ic|acl}} option also on other Linux machines. There is no need to edit {{ic|/etc/fstab}} on every machine. {{Note| * {{ic|acl}} is specified as default mount option when creating an ext2/3/4 filesystem. This is configured in {{ic|/etc/mke2fs.conf}}. * The default mount options are not listed in {{ic|/proc/mounts}}. }} === ACL の設定 === ACL を修正するには {{ic|setfacl}} コマンドを使います。パーミッションを追加するには {{ic|setfacl -m}} を使います。 ユーザーにパーミッションを追加: # setfacl -m "u:username:permissions" または: # setfacl -m "u:uid:permissions" グループにパーミッションを追加: # setfacl -m "g:groupname:permissions" または: # setfacl -m "g:gid:permissions" すべてのパーミッションを削除: # setfacl -b 個別のエントリを削除: # setfacl -x "entry" パーミッションを確認するには、次を使用: # getfacl filename == サンプル == "abc" という名前のファイルに対するユーザー johny のパーミッションを設定: # setfacl -m "u:johny:rwx" abc パーミッションの確認: {{hc|# getfacl abc| # file: abc # owner: someone # group: someone user::rw- user:johny:rwx group::r-- mask::rwx other::r-- }} ユーザー johny のパーミッションを変更: # setfacl -m "u:johny:r-x" abc パーミッションを確認: {{hc|# getfacl abc| # file: abc # owner: someone # group: someone user::rw- user:johny:r-x group::r-- mask::r-x other::r-- }} Remove all extended ACL entries: # setfacl -b abc Check permissions {{hc|# getfacl abc| # file: abc # owner: someone # group: someone user::rw- group::r-- other::r-- }} === ls コマンドの出力 === You will notice that there is an ACL for a given file because it will exhibit a {{ic|'''+'''}} (plus sign) after its Unix permissions in the output of {{ic|ls -l}}. {{hc|$ ls -l /dev/audio| crw-rw----+ 1 root audio 14, 4 nov. 9 12:49 /dev/audio }} {{hc|$ getfacl /dev/audio| getfacl: Removing leading '/' from absolute path names # file: dev/audio # owner: root # group: audio user::rw- user:solstice:rw- group::rw- mask::rw- other::--- }} == ウェブブラウザのセキュリティを向上 == You can now add permissions to our home directory and/or site directory only to nobody user any anyone else - without "whole world" to increase your security. Add permissions '''+x''' for nobody user on your home directory via ACL: # setfacl -m "u:nobody:--x" /home/homeusername/ Now you can remove whole world rx permissions: # chmod o-rx /home/homeusername/ Check our changes: # file: username/ # owner: username # group: users user::rwx user:nobody:--x group::r-x mask::r-x other::--- As we can see others do not have any permissions but user nobody have "x" permission so they can "look" into users directory and give access to users pages from their home directories to www server. Of course if www server work as nobody user. But - whole world except nobody - do not have any permissions. == 参照 == * Man ページ - {{ic|man getfacl}} * Man ページ - {{ic|man setfacl}} * An old but still relevant (and thorough) [http://www.vanemery.com/Linux/ACL/linux-acl.html guide] to ACL
このページで使用されているテンプレート:
テンプレート:Accuracy
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:META Message
(
ソースを閲覧
)
テンプレート:Man
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
テンプレート:TranslationStatus
(
ソースを閲覧
)
アクセス制御リスト
に戻る。
検索
検索
アクセス制御リストのソースを表示
話題を追加