On Friday, March 27, 2015 at 8:48:30 PM UTC+1, James Bardin wrote: > > > On Fri, Mar 27, 2015 at 3:38 PM, AJ B <a...@ajvb.me <javascript:>> wrote: > >> So I just ran it as root and it worked. Thanks for the help. But why >> wouldn't my default user be able to run a command as itself using a binary >> it obviously has permissions to run? > > > Because setuid and setgid are privileged calls, regardless of the values > you pass to them. >
Hi AJ! Note, this issue was solved in go 1.9 with the introduction of NoSetGroups property of syscall.SysProcAttr. See https://walac.github.io/golang-patch/ for context. Pete -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0f3c4cb8-0f77-4859-b1f6-59ff9a9203a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.