問題ID: 21945

この質問の投稿一覧へ

なし 問題ID: 21945

msg# 1
depth:
0
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2018-9-17 20:30
EvilSpirit39  新米   投稿数: 2
問題: セキュリティ上、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.

投稿ツリー

  >フォーラム検索へ


Copyright (c) 2020 Ping-t All rights reserved.
ログイン
ユーザ名 or E-Mailアドレス:

パスワード:







Contact

LPI-Japan Logo

LPI Logo