X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fuserplex.c;h=699cbe558b672cbcd3f57f3caa5d107729f425a6;hb=79ad402f4c4756d7bf6129513be9b6784ff41696;hp=b66490f1ac57fdd34e9bfd8b04e380cc6d8470cf;hpb=470938bdc9149ae9c7befd0cd983f46fcc056192;p=ashd.git diff --git a/src/userplex.c b/src/userplex.c index b66490f..699cbe5 100644 --- a/src/userplex.c +++ b/src/userplex.c @@ -53,6 +53,7 @@ static void login(struct passwd *pwd) { int fd; + setsid(); if(getuid() == 0) { if(initgroups(pwd->pw_name, pwd->pw_gid)) { flog(LOG_ERR, "could not init group list for %s: %s", pwd->pw_name, strerror(errno));