Operating System - HP-UX
1760568 Members
3562 Online
108894 Solutions
New Discussion юеВ

Oracle sendmail queue denied

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

Oracle sendmail queue denied

I would like to have guru help with sendmail for client:

Sendmail for root is working fine, but for user Oracle I have problem as:

"Oracle >queuename: Cannot create "qfJAA04903" in "/var/spool/mqueue" (euid=101
): Permission denied"

The /var/spoo/mqueue is 755 bin/bin.

What is problem?

Thanks a lot!

Steven
Steve
10 REPLIES 10
Christopher Caldwell
Honored Contributor

Re: Oracle sendmail queue denied

How are you invoking sendmail (what's the mail client)?
Steven Chen_1
Super Advisor

Re: Oracle sendmail queue denied

I use date|sendmail -v my@dom to test from Oracle user.

root user is fine.

Or maybe something is missing. I grep sendmail daemon as:
"quarry #ps -ef|grep sendmail
root 4760 1 0 09:13:58 ? 0:00 sendmail: accepting connections"

I have done /sbin/init.d/sendmail start.
Steve
Christopher Caldwell
Honored Contributor

Re: Oracle sendmail queue denied

How about the results of

ll /usr/sbin/sendmail
Steven Chen_1
Super Advisor

Re: Oracle sendmail queue denied

Chris,

It is
"Server # ll /usr/sbin/sendmail
-rwxr-xr-x 1 root mail 344064 Jun 7 1996 /usr/sbin/sendmail"
Steve
Christopher Caldwell
Honored Contributor

Re: Oracle sendmail queue denied

Your sendmail isn't setuid, so it can't change uid from oracle to root to get permission to write to the mail queue.

Stock HP permissions are
$ ll /usr/sbin/sendmail
-r-sr-sr-t 1 root mail 409600 Feb 26 1999 /usr/sbin/sendmail
$ ll -d /var/spool/mqueue
drwxr-xr-x 2 bin bin 54272 May 30 10:48 /var/spool/mqueue
Steven Chen_1
Super Advisor

Re: Oracle sendmail queue denied

Chris,

Could you please tell me how to change them? The problem came from yesterday after /usr permission was 444 (accident), then recovered.

Something are missing then.

Please help.
Steve
Christopher Caldwell
Honored Contributor
Solution

Re: Oracle sendmail queue denied

chmod 7555 /usr/sbin/sendmail
Steven Chen_1
Super Advisor

Re: Oracle sendmail queue denied

Chris,

Thank you very much and it works!

Can you tell me more what 7 means here (7555)? I am missing sth.

Steven
Steve
Christopher Caldwell
Honored Contributor

Re: Oracle sendmail queue denied

4000 (= u=s) Set user ID on file execution (file only)
2000 (= g=s) Set group ID on file execution (file only)
1000 (= u=t) Set sticky bit; save text image after execution (a.k.a. leave it in memory 'cause it'll probably get used alot)
Add 'em up to get the 7000. Add that to 555 to get 7555.