File ntop-default_user.patch of Package ntop

Index: ntop-4.1.0/prefs.c
===================================================================
--- ntop-4.1.0.orig/prefs.c
+++ ntop-4.1.0/prefs.c
@@ -818,8 +818,8 @@ int parseOptions(int argc, char* argv[])
       /* We're root */
       char *user;
 
-      pw = getpwnam(user = "nobody");
-      if(pw == NULL) pw = getpwnam(user = "anonymous");
+      pw = getpwnam(user = "ntop");
+      if(pw == NULL) pw = getpwnam(user = "nobody");
 
       if(pw != NULL) {
 	myGlobals.userId  = pw->pw_uid;
openSUSE Build Service is sponsored by