sevlyar / go-daemon

A library for writing system daemons in golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can you set effective user to run child as non root user ?

vaghelan opened this issue · comments

I think yes. You can use syscall.Credential to set uid:

ctx := &daemon.Context{
    Credential:  &syscall.Credential{
        Uid: uid,
    },
}