linux - How to implement commands that are not available to non-root users
ringa_lee
ringa_lee 2017-06-24 09:42:51
0
2
1269

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_lee
ringa_lee

ringa_lee

reply all(2)
ringa_lee

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.

大家讲道理

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template