yet another sendmail permission problem

2002-07-23 Thread David S. Jackson

Well, I had been getting this error:

Jul 23 14:02:18 juno sendmail[2386]: NOQUEUE: SYSERR(dsj): can not write
to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=25):
Permission denied

until I recently copied the submit.mc file from
/usr/src/contrib/yadayada to /etc/mail.  Did a make submit.cf and
restarted the sendmail daemon using make stop and make start
I also double checked the permissions on various files and directories
according to what I found in UPDATING and /etc/mail/README as well as in
the archives.

Now I've got an error I haven't seen before:

Jul 23 14:46:29 juno sm-mta[2675]: g6NIkT53002675: SYSERR(root):
collect: Cannot write ./dfg6NIkT53002675 (bfcommit, uid=0, gid=25):
Permission denied

I've done a locate sm-mta but can't find it (using several regex's).
Also, $ for i in `locate collect|grep bin`; do
ls -l $i
done
shows:
-rw-r--r--  1 root  wheel  13436 Apr 27 22:42
/usr/obj/usr/src/usr.bin/mail/collect.o
-rw-r--r--  1 root  wheel  14076 Apr 27 22:52
/usr/obj/usr/src/usr.sbin/sendmail/collect.o
-rw-r--r--  1 root  wheel  16592 Mar 24 15:18
/usr/src/usr.bin/mail/collect.c

None of these appears to have gid=25 or be in smmsp.  Apr 27 was the
last cvsup I did; before I do it again, I'd like to get this problem
fixed.  :-)

Any ideas?

-- 
David S. Jackson[EMAIL PROTECTED]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I'm not afraid of death -- I just don't want to be
there when it happens.  -- Woody Allen

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: yet another sendmail permission problem

2002-07-23 Thread Daniel Bye

On Tue, Jul 23, 2002 at 03:15:31PM -0400, David S. Jackson wrote:
 Well, I had been getting this error:
 
 Jul 23 14:02:18 juno sendmail[2386]: NOQUEUE: SYSERR(dsj): can not write
 to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=25):
 Permission denied
 
 until I recently copied the submit.mc file from
 /usr/src/contrib/yadayada to /etc/mail.  Did a make submit.cf and
 restarted the sendmail daemon using make stop and make start
 I also double checked the permissions on various files and directories
 according to what I found in UPDATING and /etc/mail/README as well as in
 the archives.
 
 Now I've got an error I haven't seen before:
 
 Jul 23 14:46:29 juno sm-mta[2675]: g6NIkT53002675: SYSERR(root):
 collect: Cannot write ./dfg6NIkT53002675 (bfcommit, uid=0, gid=25):
 Permission denied
 
 I've done a locate sm-mta but can't find it (using several regex's).
 Also, $ for i in `locate collect|grep bin`; do
 ls -l $i
 done
 shows:
 -rw-r--r--  1 root  wheel  13436 Apr 27 22:42
 /usr/obj/usr/src/usr.bin/mail/collect.o
 -rw-r--r--  1 root  wheel  14076 Apr 27 22:52
 /usr/obj/usr/src/usr.sbin/sendmail/collect.o
 -rw-r--r--  1 root  wheel  16592 Mar 24 15:18
 /usr/src/usr.bin/mail/collect.c
 
 None of these appears to have gid=25 or be in smmsp.  Apr 27 was the
 last cvsup I did; before I do it again, I'd like to get this problem
 fixed.  :-)

Take a look at /var/spool/clientmqueue - the permissions should be 775, and
the ownership should be root:smmsp.  The sendmail binary is setgid, and
the error you are seeing is because group smmsp does not have write access
to that directory.

# chown :smmsp /var/spool/clientmqueue
# chmod g+w !$

and you should be set...  You may need to do the same for /var/spool/mqueue.

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message