助け合いフォーラム
トピック一覧に戻るトピック タイトル
問題ID: 21945
フォーラム
最強WEB問題集LinuC/LPIC Lv1 102
投稿ユーザ(投稿日)
(2018/9/17)本文
問題: セキュリティ上、SUIDとSGIDのいずれかが設定されたファイルやディレクトリをすべて把握しておきたい。適切なコマンドを選びなさい
解答: find / -perm +6000
となっていますが、現在(2005年以降)のGNU findでは「-perm +mode」は廃止され、「-perm /mode」を使う必要があるようです。
コマ問にも同様の設問があるので、そちらも対応をお願いします。
以下、manPageより抜粋です。
>-perm /mode
> Any of the permission bits mode are set for the file.
> Symbolic modes are accepted in this form. You must specify
> `u', `g' or `o' if you use a symbolic mode. See the EXAMPLES
> section for some illustrative examples. If no permission bits
> in mode are set, this test matches any file (the idea here is
> to be consistent with the behaviour of -perm -000).
>-perm +mode
> This is no longer supported (and has been deprecated since
> 2005). Use -perm /mode instead.
レス一覧
トピック一覧に戻る
フォーラムTopへ
Copyright (c) 2010
Ping-t All rights reserved.