# ls -l /etc/hoge
-rwxrwxrwx. 1 root root 0 6月 5 22:54 /etc/hoge
# [ -w /etc/hoge ] ; echo $?
0
# ls -l /etc/hoge
----------. 1 root root 0 6月 5 22:54 /etc/hoge
# [ -w /etc/hoge ] ; echo $?
0
#
# ls -l /etc/hoge
-rwxrwxrwx. 1 root root 0 6月 5 22:54 /etc/hoge

$ [ -w /etc/hoge ] ; echo $?
0

# ls -l /etc/hoge
----------. 1 root root 0 6月 5 22:54 /etc/hoge
#
$ [ -w /etc/hoge ] ; echo $?
1
$

rootの場合、パーミンションが000のファイルでも
[ -w /etc/hoge ]で確認すると、「書ける」と判断されるのは仕様でしょうか

また、この「ファイルにかける」というのは何をもって判断しているのでしょうか。 👀
Rock54: Caution(BBR-MD5:1341adc37120578f18dba9451e6c8c3b)