Commit 484e2d4a authored by jan.koester's avatar jan.koester
Browse files

test

parent 1377318d
Loading
Loading
Loading
Loading
Loading
+0 −22
Changes for src/authdb.cpp: 0 added lines, 22 removed lines.
Original line number Diff line number Diff line
@@ -670,28 +670,6 @@ int main(int argc,char *argv[]){
            pluginThreads.back().detach();
        }

#ifndef _WIN32
        if ( getuid() == 0) {
            struct passwd *pw = getpwnam("authdb");
            if (pw) {
                if (setgid(pw->pw_gid) != 0) {
                    std::cerr << "setgid failed" << std::endl;
                    return 1;
                }
                if (initgroups("authdb", pw->pw_gid) != 0) {
                    std::cerr << "initgroups failed" << std::endl;
                    return 1;
                }
                if (setuid(pw->pw_uid) != 0) {
                    std::cerr << "setuid failed" << std::endl;
                    return 1;
                }
            } else {
                std::cerr << "user authdb not found, running as root" << std::endl;
            }
        }
#endif

        authdb.runEventloop();

        /* Shutdown cluster */