Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • You made the file setgid, yet group root is just an ordinary group. And adding the current user to group root is useless. Do you understand what the setuid and setgid bits do? Commented Dec 2, 2017 at 6:08
  • I assume that the file will be ran as root group. which means it can bypass root privelege Commented Dec 2, 2017 at 6:14
  • 1
    From where did you get the impression that membership in the group root confers any special privileges? Can you provide a quotation? Commented Dec 2, 2017 at 6:19
  • strange, I added setuid instead, and it works. I assume that the error is related to root UID. Commented Dec 2, 2017 at 6:31
  • 1
    @AlexP Make that an answer so that this question does not look unsolved any more. Commented Dec 2, 2017 at 8:43