4 // set the UID this script will run as (cyrus user)
6 // set the path to saslpasswd or saslpasswd2
7 #define CMD "/usr/sbin/saslpasswd2"
10 gcc -o chgsaslpasswd chgsaslpasswd.c
11 chown cyrus.apache chgsaslpasswd
13 chmod 4550 chgsaslpasswd
16 main(int argc, char *argv[])
21 rc = execvp(CMD, argv);
22 if ((rc != 0) || (cc != 0))
24 fprintf(stderr, "__ %s: failed %d %d\n", argv[0], rc, cc);