Linux: FS: 13 EACCES in executable file

One thing to note here is that the order in which files are checked for executable permissions is:

  1. View file permissions;
  2. See if the corresponding shell command has permission to execute;
  3. Look at the permissions of the directory to which the file belongs; this is also an item to check;
static struct file *do_open_execat(int fd, struct filename *name, int flags)
{
   
    
    
    struct file *file;
    int err;
    

Guess you like

Origin blog.csdn.net/qq_36428903/article/details/131710128