Linuxにおけるセキュリティの根幹は、ファイルやディレクトリに対する「権限(パーミッション)」の制御にあります。chmod(change mode)コマンドは、誰がそのファイルに対して何を実行できるかを決定する、管理者にとって最も重要なツールのひとつです。
前回は、rwx と権限の読み方 を整理しました。 今回はいよいよ、 「権限を変える」操作 に入ります。 ここは Linux 初心者が 一番やらかしやすいポイント でもあります。 まず大前提(超重要) 結論から書きます。 ※ -R は再帰。 範囲を間違えると大事故です。
「Linux」を含む「UNIX」系システムで利用できる「chmod」は、ファイルやフォルダにパーミッション(ユーザーグループ別の利用権限)を設定するためのコマンドだ。 なぜ「777」は望ましくないのか chmodで「777」のパーミッションを設定するのは避けた方がよい ...
An interesting question was posed recently in a discussion group. What would you do if the chmod command on a system that you manage lost its execute permissions? Well, you wouldn’t exactly just chmod ...
I need to do a recursive chmod 2775 on a folder to allow everyone in a particular group on a RHEL 6 machine to do what they need to do. This will have the disadvantage of making all the files 2775 ...