Date: Sun, 16 Apr 2000 14:04:11 -0700 From: "Giorgos Keramidas" <charon@bug.gr> To: "Justin" <asmo@zeus.larp.com>, <freebsd-questions@freebsd.org> Subject: Re: Sendmail Error Message-ID: <005001bfa7e7$ebc7ff60$10c536d4@charon>
next in thread | raw e-mail | index | archive | help
-----Original Message----- From: Justin <asmo@zeus.larp.com> To: freebsd-questions@freebsd.org <freebsd-questions@freebsd.org> Date: Κυριακή, 16 Απριλίου 2000 10:40 πμ Subject: Sendmail Error > >The error: Apr 16 06:26:09 heretic >sendmail[728]: NOQUEUE: SYSERR(asmo): cannot >chdir(/usr/var/spool/mqueue): Permission denied That's because sendmail is not running as root.wheel all the time. Sending mail as 'root' will execute the binary with root permissions, and it can write files in /var/spool/mqueue. When you run a mailer as a simple user, sendmail is executed by the mailer as /that/ user, and not root. The solution is to chmod sendmail's binary to be set-uid root, and let simple users run sendmail as root.wheel, as shown below: # cd /usr/sbin # chmod 4755 mailwrapper (Don't worry about seeing mailwrapper here, instead of sendmail. Your /usr/sbin/sendmail should be a link to mailwrapper, as far as I know. :) - Giorgos Keramidas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005001bfa7e7$ebc7ff60$10c536d4>