Home  >  Q&A  >  body text

linux - How to implement commands that are not available to non-root users

Obviously not allowed

Today when I was reading a book, I suddenly discovered that the permission of chmod is 755, but ordinary users still cannot use it. Why is this?
I originally thought the permission was 700 or 744, but the result was 755. Question. . . I googled but couldn't find the answer, please give me some advice

ringa_leeringa_lee2697 days ago1264

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-06-24 09:44:51

    Simply put, the two permissions (whether the user can execute the program file) and (whether the process can execute specific instructions) are separate.

    You already have the former permission. The error message you see is because the process you opened does not have the latter permission.

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-24 09:44:51

    Chmod permissions indicate that ordinary users can use this command, but /tmp permission modification requires superuser permissions

    sudo chmod 777 /tmp # Generally, the /tmp folder permissions are not modified

    reply
    0
  • Cancelreply