One my 4.8 box I recently made a silly mistake sending a mail from the command line, along the lines of: mkn@shrewd$ mail test@knigma.org -c test@knigma.org Subject: test test EOT mkn@shrewd$ WARNING: RunAsGid for MSP ignored, check group ids (egid=1001, want=25) can not chdir(/var/spool/clientmqueue/): Permission denied Program mode requires special privileges, e.g., root or TrustedUser. Obviously I meant: mkn@shrewd$ mail -c test@knigma.org test@knigma.org which works absolutely fine, so it's not a major problem. I'd just be interested in knowing why my mistake lead to such an odd message! I believe my sendmail / clientmqueue permissions are the installed default and sane. Cheers, -- Mark A. R. Knight
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 10 Apr 2003, Mark Knight wrote:> One my 4.8 box I recently made a silly mistake sending a mail from the > command line, along the lines of: > > mkn@shrewd$ mail test@knigma.org -c test@knigma.org > Subject: test > test > EOT > mkn@shrewd$ WARNING: RunAsGid for MSP ignored, check group ids > (egid=1001, want=25) > can not chdir(/var/spool/clientmqueue/): Permission denied > Program mode requires special privileges, e.g., root or TrustedUser. > > Obviously I meant: > > mkn@shrewd$ mail -c test@knigma.org test@knigma.org > > which works absolutely fine, so it's not a major problem. > > I'd just be interested in knowing why my mistake lead to such an odd > message! I believe my sendmail / clientmqueue permissions are the > installed default and sane. >Whar are the permissions on /usr/libexec/sendmail/sendmail and /var/spool/clientmqueue? For the record, you should have it in group smmsp, and the setgid bit set. - -r-xr-sr-x 1 root smmsp 626792 Mar 29 23:35 /usr/libexec/sendmail/sendmail and drwxrwx--- 2 smmsp smmsp 512 Apr 10 03:07 clientmqueue/ It is an odd error, but it may disappear if the permissions are correct (ie: your normal way of doing things may be masking a different problem). - - Jeff Jirsa -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+lawo1ZEy6nYcOF4RAuugAKCWC74JKWlzSDnlEgZKFN5LOwX61QCfV/ms Zjyk7LJSel0jGq8oag1AeTs=RiF1 -----END PGP SIGNATURE-----
On Thu, 10 Apr 2003, Mark Knight wrote:> One my 4.8 box I recently made a silly mistake sending a mail from the > command line, along the lines of: > > mkn@shrewd$ mail test@knigma.org -c test@knigma.org > Subject: test > test > EOT > mkn@shrewd$ WARNING: RunAsGid for MSP ignored, check group ids > (egid=1001, want=25) > can not chdir(/var/spool/clientmqueue/): Permission denied > Program mode requires special privileges, e.g., root or TrustedUser.Well, according to the mail(3) manpage, anything after the to: address is passed straight to sendmail. And it turns out that the presence of the email address does not matter either. > sendmail -c WARNING: RunAsGid for MSP ignored, check group ids (egid=5000, want=25) can not chdir(/var/spool/clientmqueue/): Permission denied Program mode requires special privileges, e.g., root or TrustedUser. But thats about as far as I can figure, because as far as I can tell the sendmail -c option is undocumented... The source code says (main.c): /* compatibility flags */ case 'c': /* connect to non-local mailers */ So basically you are inadvertantly using a deprecated option. I'm not suprised it gives an unusual error message... Gavin
> can not chdir(/var/spool/clientmqueue/): Permission denied > Program mode requires special privileges, e.g., root or TrustedUser.We had this problem and it turned out we'd forgotten to update the sendmail.cf after a major upgrade (with new sendmail version with new priv models). Try "cd /etc/mail && make install && sh /etc/rc.sendmail restart"
In message <20030410103334.X8910-100000@boris.st.hmc.edu>, Jeff Jirsa <jeff@unixconsults.com> writes>Whar are the permissions on /usr/libexec/sendmail/sendmail and >/var/spool/clientmqueue? For the record, you should have it in group >smmsp, and the setgid bit set. > >-r-xr-sr-x 1 root smmsp 626792 Mar 29 23:35 /usr/libexec/sendmail/sendmail > >and > >drwxrwx--- 2 smmsp smmsp 512 Apr 10 03:07 clientmqueue/ > >It is an odd error, but it may disappear if the permissions are correct >(ie: your normal way of doing things may be masking a different problem).mkn@shrewd$ ls -l /usr/libexec/sendmail/sendmail -r-xr-sr-x 1 root smmsp 585976 Apr 1 19:07 /usr/libexec/sendmail/sendmail mkn@shrewd$ ls -ld /var/spool/clientmqueue drwxrwx--- 2 smmsp smmsp 512 Apr 11 07:46 /var/spool/clientmqueue mkn@shrewd$ Cheers, -- Mark A. R. Knight finger: markk@knigma.org Tel: +44 7880 556751 http://www.knigma.org/