Quantcast
Channel: file-permissions – Ringing Liberty
Viewing all articles
Browse latest Browse all 23

File permission issue with setuid bit set

$
0
0

Johnny_doubts asked:

I have a script on a server that has permission —s–x— but when i try to access/run it, I get a permission denied. The user I try with doesn’t own the file nor is the member of the group that owns the file but with the suid set shouldn’t it work? oh btw, I have a ksh.

My answer:


You can’t execute a script unless the executable bit is set. The setuid bit is not relevant to whether you can execute it.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

The post File permission issue with setuid bit set appeared first on Ringing Liberty.


Viewing all articles
Browse latest Browse all 23

Trending Articles