Operating System - HP-UX
1822543 Members
2673 Online
109642 Solutions
New Discussion юеВ

Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

 
Tariq Hasan_1
Frequent Advisor

Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

When mailing, I am getting the following error:

/etc/mail/sendmail.cf: line 668: fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Also, when trying to find the version using sendmail -bs
i get the same error message.

The box is a K380 running HP-UX 11.00

Thanks

Tariq
14 REPLIES 14
jpcast_real
Regular Advisor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Try to modify permissions , this is my system configuration:

Athos:/etc/mail> ll -d /etc/mail
dr-xr-xr-x 2 bin bin 8192 Sep 27 17:35 /etc/mail
Athos:/etc/mail> ll /etc/mail
total 336
-rw-r----- 1 root bin 907 Feb 20 2004 aliases
-rw-r----- 1 root bin 24576 Sep 28 07:29 aliases.db
-r--r--r-- 1 bin bin 10222 Nov 14 2000 mailcap
-r--r--r-- 1 bin bin 94333 May 12 17:49 sendmail.cf
-r--r--r-- 1 bin bin 734 Mar 10 2004 sendmail.cw
-rw------- 1 root mail 34 Sep 28 07:29 sendmail.pid
-r--r--r-- 1 bin bin 1012 Nov 14 2000 service.switch
Here rests one who was not what he wanted and didn't want what he was
Tariq Hasan_1
Frequent Advisor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Same as mine

rgpss01# ll
total 928
-rw-r----- 1 root bin 915 Apr 24 2002 aliases
-rw-r----- 1 root bin 24576 Sep 26 2003 aliases.db
-rw-r--r-- 1 root mail 0 Jan 28 1999 aliases.dir
-rw-r--r-- 1 root mail 1024 Jan 28 1999 aliases.pag
-r--r--r-- 1 bin bin 10203 Oct 27 1997 mailcap
-rw-r--r-- 1 root sys 86685 Sep 1 10:36 rdwrk01-sendmail.cf
-rw-r--r-- 1 bin bin 86685 Aug 3 11:48 sendmail.cf
-rw-r--r-- 1 root users 86671 Jan 7 2003 sendmail.cf.05082004
-r--r--r-- 1 bin bin 86693 Apr 24 2002 sendmail.cf.bak
-r--r--r-- 1 bin bin 86575 May 28 1999 sendmail.cf.orig
-r--r--r-- 1 bin bin 794 Jan 22 2002 sendmail.cw
-r--r--r-- 1 bin bin 1367 Sep 26 10:27 service.switch

The only different being the rw- on sendmail.cf as opposed to r-- on yours.
Muthukumar_5
Honored Contributor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Check /etc/mail/ directory permission there.

ll -d /etc/mail

what is there in /etc/mail/sendmail.cf 668 line??
Easy to suggest when don't know about the problem!
Prashant Zanwar_4
Respected Contributor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

I believe all it has to do with your sendmail.cf file rather than anything.
Check if you correct relay server mentioned.

check

"sendmail -v myname@myhost.com"

How it goes?

Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Tariq Hasan_1
Frequent Advisor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

rgpss01# ll -d /etc/mail
dr-xr-xr-x 2 bin bin 1024 Sep 26 10:27 /etc/mail


Also, line 668 consists of the following:

Fw/etc/mail/sendmail.cw
Tariq Hasan_1
Frequent Advisor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Prashant

Output as follows

rgpss01# sendmail -v tariq.hasan@virgin.net
/etc/mail/sendmail.cf: line 0: WARNING: Group writable directory /etc
/etc/mail/sendmail.cf: line 668: fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory
rgpss01#
Prashant Zanwar_4
Respected Contributor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Can you check the contents of sendmail.cw
And also check if you have correct relay server mentioned.
grep ^DS /etc/mail/sendmail.cf

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

How is your /etc

ls -ld /etc

dr-xr-xr-x 27 bin bin 6144 Sep 30 13:57 /etc

also

dr-xr-xr-x 2 bin bin 1024 Sep 30 13:04 /etc/mail

Thanks
Prashant

"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Do you have this entry

Fw -o /etc/mail/sendmail.cw

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Mark Greene_1
Honored Contributor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Tariq

run "mailq -v -d", it will tell you which directory it's complaining about. Probably /var/spool/mqueue, or something in that path.

mark
the future will be a lot like now, only later
Tariq Hasan_1
Frequent Advisor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Mark

After running mailq -v -d

rgpss01# mailq -v -d
Version 8.9.3 (PHNE_29773)
Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7
NAMED_BIND NDBM NETINET NETUNIX NEWDB NIS NISPLUS QUEUE SCANF
SMTP USERDB XDEBUG
setoption Verbose (v).=T
/etc/mail/sendmail.cf: line 0: WARNING: Group writable directory /etc
/etc/mail/sendmail.cf: line 668: fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory
syserr: ExitStat = 71
setoption SevenBitInput (7).=False
setoption EightBitMode (8).=pass8
setoption AliasWait (a).=10
setoption AliasFile (A).=/etc/mail/aliases
setoption MinFreeBlocks (b).=100
setoption BlankSub (B).=.
setoption HoldExpensive (c).=False
setoption DeliveryMode (d).=background
setoption TempFileMode (F).=0600
setoption HelpFile (H).=/usr/share/lib/sendmail.hf
setoption SendMimeErrors (j).=True
setoption ForwardPath (J).=$z/.forward.$w:$z/.forward
setoption ConnectionCacheSize (k).=2
setoption ConnectionCacheTimeout (K).=5m
setoption UseErrorsTo (l).=False
setoption LogLevel (L).=9
setoption CheckAliases (n).=False
setoption OldStyleHeaders (o).=True
setoption PrivacyOptions (p).=authwarnings
setoption QueueDirectory (Q).=/var/spool/mqueue
setoption Timeout (r).queuereturn=5d
setoption Timeout (r).queuewarn=4h
setoption SuperSafe (s).=True
setoption StatusFile (S).=/etc/mail/sendmail.st
setoption TimeZoneSpec (t).=
setoption DefaultUser (u).=1:1
setoption TryNullMXList (w).=T
setoption SmtpGreetingMessage (0x90).=$j Sendmail $v/$Z; $b
setoption UnixFromLine (0x91).=From $g $d
setoption OperatorChars (0x92).=.:%@!^/[]+
drop_privileges(0): Real[UG]id=0:3, RunAs[UG]id=0:0
getauthinfo: root@localhost

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = rgpss01
(canonical domain name) $j = rgpss01.hs.pru.com
(subdomain name) $m = hs.pru.com
(node name) $k = rgpss01
========================================================

setoption HoldExpensive (c).=F
setoption DeliveryMode (d).=

====finis: stat 71 e_id=NOQUEUE e_flags=1
Tariq Hasan_1
Frequent Advisor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Prashant

I have this entry in sendmail.cf

Fw/etc/mail/sendmail.cw

Tariq
john korterman
Honored Contributor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Hi,
/etc is writable - it should not be, that is the problem.

regards,
John K.
it would be nice if you always got a second chance
Prashant Zanwar_4
Respected Contributor

Re: Sendmail fileclass: cannot open /etc/mail/sendmail.cw: Group writable directory

Can you change permissions on /etc and also do the sendmail.cw line in your sendmail.cf as given above.

Fw -o /etc/mail/sendmail.cw...this should be resolving your problem.

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."