In Java what exactly does File.canExecute() do?

后端 未结 3 1781
深忆病人
深忆病人 2021-01-13 20:46

I have created a plain file which does not have execute permission but when I create a Java File object using this file\'s path/name and then call File.canExecute() I get tr

3条回答
  •  感动是毒
    2021-01-13 20:52

    Nothing to do with Java - you're running as root, and root is allowed everything, not matter what the permissions say.

提交回复
热议问题