X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fuserplex.c;h=699cbe558b672cbcd3f57f3caa5d107729f425a6;hb=d5ee5cdea79ab756f4a7908c19b8232d57a1a3a8;hp=b66490f1ac57fdd34e9bfd8b04e380cc6d8470cf;hpb=be078ac9feafbf0eb7547ea14bb2e73936caa60c;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));