Xymon mailman web
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

None

None

24 Jun 2026 24 Jun '26
8:18 a.m.

to use "owner" and "group" until you realized that group was reserved, so you switched to "ownerid" and "groupid". The only problem was that you did not change the parsing position for the input data.

Bill

                                           uid = strtol(tok+8,

&eptr, 10);

                                            if (*eptr == '\0') {

                                                    /* All numeric

*/

                                                    currule->flags

|= FCHK_OWNERID;

currule->rule.fcheck.ownerid = uid;

                                            }

                                            else {

                                                    currule->flags

|= FCHK_OWNERSTR;

currule->rule.fcheck.ownerstr = strdup(tok+8);

                                            }

                                    }

                                    else if (strncasecmp(tok,

"groupid=", 8) == 0) {

                                            /* Cannot use "group"

because that is reserved */

                                            char *eptr;

                                            int uid;



                                            uid = strtol(tok+8,

&eptr, 10);

                                            if (*eptr == '\0') {

                                                    /* All numeric

*/

                                                    currule->flags

|= FCHK_GROUPID;

currule->rule.fcheck.groupid = uid;

                                            }

                                            else {

                                                    currule->flags

|= FCHK_GROUPSTR;

currule->rule.fcheck.groupstr = strdup(tok+8);

                                            }

##########

problem checking directory oid / gid


  • To: hobbit (at) hswn.dk
  • Subject: problem checking directory oid / gid
  • From: Joost van den Broek <joost (at) seat-ibiza.nl>
  • Date: Sun, 18 Feb 2007 21:16:22 +0100
  • User-agent: Thunderbird 2.0b2 (X11/20070209)

size=2 width="100%" align=center> Hi,

I get the following status message:

/tmp File is owned by user root - should be d=root File is owned by group root - should be d=root

The config files contain:

hobbit-clients.cfg FILE /tmp yellow type=dir ownerid=root groupid=root mode=1777

client-local.cfg file:/tmp

Removing ownerid and groupid will give back a green status - what is going wrong?

Thanks,

Joost

Confidentiality Notice: This is a transmission from a Winter Haven Hospital facility. This message and any attached documents may be confidential and contain information protected by state and federal medical privacy statutes. They are intended only for the use of the addressee. If you are not the intended recipient, any disclosure, copying, or distribution of this information is strictly prohibited. If you received this transmission in error, please accept our apologies and notify the sender.

This Outbound Message has been scanned for Viruses and objectionable content by McAfee Secure Internet Gateway.

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.12.