⇧ Oh, my gosh...
JavaでLinuxの権限のマトリックスを作ってみる
Linuxの権限のマトリックスとか無いんかなと思って、ネットの情報を漁っていたのだけど、全てを網羅しているって情報は見当たらなかった。
⇧ 上記サイト様にインスパイアされましたので、Linuxの権限のマトリックスをJavaで作成してみる。
ちなみに、
⇧ 上記サイト様によりますと、大量のデータを0埋めする場合、パフォーマンスの観点から、標準APIのString.format()は避けた方が良いようです。
今回は、String.format()を使ってしまったけど。
まぁ、そもそも、4重ループとか使ってしまっているから、パフォーマンスは完全に無視ですな...
■/test-linux-permission/src/app/LinuxPermissinMatrix.java
package app; import static java.util.Map.*; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.TreeMap; public class LinuxPermissinMatrix { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ List<String> permissions = Arrays.asList("User", "Group", "Other"); List<String> masks = Arrays.asList("r", "w", "x"); Map<String, String> paternMap = Map.ofEntries( entry("---", "000") , entry("--x", "001") , entry("-w-", "010") , entry("-wx", "011") , entry("r--", "100") , entry("r-x", "101") , entry("rw-", "110") , entry("rwx", "111") ); String htmlTableHeader = makeLinuxPermissionMatrixHeader(permissions, masks); String htmlTableBody = makeLinuxPermissionMatrixBody(paternMap); String htmlTable = makeLinuxPermissionMatrix(htmlTableHeader, htmlTableBody); System.out.println(htmlTable); } private static String makeLinuxPermissionMatrixHeader(List<String> permissions, List<String> masks) { StringBuilder sb = new StringBuilder(); sb.append("<thead><tr><th rowspan=\"2\">Unix Permission Mask</th>\n"); for (String permission: permissions) { sb.append("<th colspan=\"3\">"); sb.append(permission); sb.append("</th>\n"); } sb.append("<th rowspan=\"2\">Decimal Representation</th>\n"); sb.append("</tr>\n<tr>\n"); for (int idx = 0; idx < permissions.size(); idx++) { for (String mask : masks) { sb.append("<th>"); sb.append(mask.toUpperCase()); sb.append("</th>\n"); } } sb.append("</tr>\n"); sb.append("</thead>\n"); return sb.toString(); } private static String makeLinuxPermissionMatrixBody(Map<String, String> paternMap) { StringBuilder sb = new StringBuilder(); StringBuilder sortValueSb = new StringBuilder(); StringBuilder sortKeySb = new StringBuilder(); Map<Integer, String> sortMap = new TreeMap<Integer, String>(); sb.append("<tbody>"); for (Map.Entry<String, String> entryUser: paternMap.entrySet()) { for (Map.Entry<String, String> entryGroup: paternMap.entrySet()) { for (Map.Entry<String, String> entryOther: paternMap.entrySet()) { sortValueSb.append("<tr><td>"); sortValueSb.append(entryUser.getKey()); sortValueSb.append(entryGroup.getKey()); sortValueSb.append(entryOther.getKey()); sortValueSb.append("</td>\n"); for (char mask: entryUser.getValue().toCharArray()) { sortValueSb.append("<td>"); sortValueSb.append(mask); sortValueSb.append("</td>\n"); } for (char mask: entryGroup.getValue().toCharArray()) { sortValueSb.append("<td>"); sortValueSb.append(mask); sortValueSb.append("</td>\n"); } for (char mask: entryOther.getValue().toCharArray()) { sortValueSb.append("<td>"); sortValueSb.append(mask); sortValueSb.append("</td>\n"); } int numberUserPamission = Integer.parseInt(entryUser.getValue(), 2); int numberGroupPamission = Integer.parseInt(entryGroup.getValue(), 2); int numberOtherPamission = Integer.parseInt(entryOther.getValue(), 2); sortKeySb.append(String.valueOf(numberUserPamission)); sortKeySb.append(String.valueOf(numberGroupPamission)); sortKeySb.append(String.valueOf(numberOtherPamission)); sortMap.put(Integer.valueOf(sortKeySb.toString()), sortValueSb.toString()); sortKeySb.setLength(0); sortValueSb.setLength(0); } } } for (Map.Entry<Integer, String> entry: sortMap.entrySet() ) { sb.append(entry.getValue()); sb.append("<td class=\"permission\">"); sb.append(String.format("%03d", entry.getKey())); sb.append("</td>\n"); sb.append("</tr>\n"); } sb.append("</tbody>\n"); return sb.toString(); } private static String makeLinuxPermissionMatrix(String htmlTableHeader, String htmlTableBody) { StringBuilder sb = new StringBuilder(); sb.append("<table>"); sb.append(htmlTableHeader); sb.append(htmlTableBody); sb.append("</table>\n"); return sb.toString(); } }
⇧ で、実行すると、
実行結果
Unix Permission Mask | User | Group | Other | Decimal Representation | ||||||
---|---|---|---|---|---|---|---|---|---|---|
R | W | X | R | W | X | R | W | X | ||
--------- | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 000 |
--------x | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 001 |
-------w- | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 002 |
-------wx | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 003 |
------r-- | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 004 |
------r-x | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 005 |
------rw- | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 006 |
------rwx | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 007 |
-----x--- | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 010 |
-----x--x | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 011 |
-----x-w- | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 012 |
-----x-wx | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 013 |
-----xr-- | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 014 |
-----xr-x | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 015 |
-----xrw- | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 016 |
-----xrwx | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 017 |
----w---- | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 020 |
----w---x | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 021 |
----w--w- | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 022 |
----w--wx | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 023 |
----w-r-- | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 024 |
----w-r-x | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 025 |
----w-rw- | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 026 |
----w-rwx | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 027 |
----wx--- | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 030 |
----wx--x | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 031 |
----wx-w- | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 032 |
----wx-wx | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 033 |
----wxr-- | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 034 |
----wxr-x | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 035 |
----wxrw- | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 036 |
----wxrwx | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 037 |
---r----- | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 040 |
---r----x | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 041 |
---r---w- | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 042 |
---r---wx | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 043 |
---r--r-- | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 044 |
---r--r-x | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 045 |
---r--rw- | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 046 |
---r--rwx | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 047 |
---r-x--- | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 050 |
---r-x--x | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 051 |
---r-x-w- | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 052 |
---r-x-wx | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 053 |
---r-xr-- | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 054 |
---r-xr-x | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 055 |
---r-xrw- | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 056 |
---r-xrwx | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 057 |
---rw---- | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 060 |
---rw---x | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 061 |
---rw--w- | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 062 |
---rw--wx | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 063 |
---rw-r-- | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 064 |
---rw-r-x | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 065 |
---rw-rw- | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 066 |
---rw-rwx | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 067 |
---rwx--- | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 070 |
---rwx--x | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 071 |
---rwx-w- | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 072 |
---rwx-wx | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 073 |
---rwxr-- | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 074 |
---rwxr-x | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 075 |
---rwxrw- | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 076 |
---rwxrwx | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 077 |
--x------ | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 100 |
--x-----x | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 101 |
--x----w- | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 102 |
--x----wx | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 103 |
--x---r-- | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 104 |
--x---r-x | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 105 |
--x---rw- | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 106 |
--x---rwx | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 107 |
--x--x--- | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 110 |
--x--x--x | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 111 |
--x--x-w- | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 112 |
--x--x-wx | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 113 |
--x--xr-- | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 114 |
--x--xr-x | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 115 |
--x--xrw- | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 116 |
--x--xrwx | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 117 |
--x-w---- | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 120 |
--x-w---x | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 121 |
--x-w--w- | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 122 |
--x-w--wx | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 123 |
--x-w-r-- | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 124 |
--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 1 | 1 | 1 | 1 | 0 | 176 |
--xrwxrwx | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 177 |
-w------- | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 200 |
-w------x | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 201 |
-w-----w- | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 202 |
-w-----wx | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 203 |
-w----r-- | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 204 |
-w----r-x | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 205 |
-w----rw- | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 206 |
-w----rwx | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 207 |
-w---x--- | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 210 |
-w---x--x | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 211 |
-w---x-w- | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 212 |
-w---x-wx | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 213 |
-w---xr-- | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 214 |
-w---xr-x | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 215 |
-w---xrw- | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 216 |
-w---xrwx | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 217 |
-w--w---- | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 220 |
-w--w---x | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 221 |
-w--w--w- | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 222 |
-w--w--wx | 0 | 1 | 0 | 0 | 1 | 0 | 0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wx-w- | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 372 |
-wxrwx-wx | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 373 |
-wxrwxr-- | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 374 |
-wxrwxr-x | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 375 |
-wxrwxrw- | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 376 |
-wxrwxrwx | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 377 |
r-------- | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 400 |
r-------x | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 401 |
r------w- | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 402 |
r------wx | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 403 |
r-----r-- | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 404 |
r-----r-x | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 405 |
r-----rw- | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 406 |
r-----rwx | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 407 |
r----x--- | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 410 |
r----x--x | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 411 |
r----x-w- | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 412 |
r----x-wx | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 413 |
r----xr-- | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 414 |
r----xr-x | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 415 |
r----xrw- | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 416 |
r----xrwx | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 417 |
r---w---- | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 420 |
r---w---x | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 421 |
r---w--w- | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 422 |
r---w--wx | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 423 |
r---w-r-- | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 424 |
r---w-r-x | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 425 |
r---w-rw- | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 426 |
r---w-rwx | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 427 |
r---wx--- | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 430 |
r---wx--x | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 431 |
r---wx-w- | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 432 |
r---wx-wx | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 433 |
r---wxr-- | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 434 |
r---wxr-x | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 435 |
r---wxrw- | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 436 |
r---wxrwx | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 437 |
r--r----- | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 440 |
r--r----x | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 441 |
r--r---w- | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 442 |
r--r---wx | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 443 |
r--r--r-- | 1 | 0 | 0 | 1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1 | 0 | 566 |
r-xrw-rwx | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 567 |
r-xrwx--- | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 570 |
r-xrwx--x | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 571 |
r-xrwx-w- | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 572 |
r-xrwx-wx | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 573 |
r-xrwxr-- | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 574 |
r-xrwxr-x | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 575 |
r-xrwxrw- | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 576 |
r-xrwxrwx | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 577 |
rw------- | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 600 |
rw------x | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 601 |
rw-----w- | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 602 |
rw-----wx | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 603 |
rw----r-- | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 604 |
rw----r-x | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 605 |
rw----rw- | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 606 |
rw----rwx | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 607 |
rw---x--- | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 610 |
rw---x--x | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 611 |
rw---x-w- | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 612 |
rw---x-wx | 1 | 1 | 0 | 0 | 0 | 1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1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 762 |
rwxrw--wx | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 763 |
rwxrw-r-- | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 764 |
rwxrw-r-x | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 765 |
rwxrw-rw- | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 766 |
rwxrw-rwx | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 767 |
rwxrwx--- | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 770 |
rwxrwx--x | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 771 |
rwxrwx-w- | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 772 |
rwxrwx-wx | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 773 |
rwxrwxr-- | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 774 |
rwxrwxr-x | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 775 |
rwxrwxrw- | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 776 |
rwxrwxrwx | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 777 |
⇧ という感じで、Linuxの権限のマトリックスを作成することができました。
2進数の0と1で、最大3桁なので、10進数にすると、0~7まで表現できて、
- User
- Group
- Other
の3つで考えると、最大が777になるってことですな。
まぁ、よく使うパターンは限られてるとは思うけども。
⇧ 上記サイト様によりますと、
- 777
- 775
- 755
- 664
- 644
あたりを使うことが多いんかな。
久々に、Javaを触ったから、いろいろ忘れてるなぁ...
まぁ、そもそも、HTMLの生成で、且つ、動的なデータを扱ってるわけでも無いので、サーバサイド側で実装する必要が無いので、JavaScriptとかで実装した方が良さそうね...
毎度モヤモヤ感が半端ない...
今回はこのへんで。