Subject: sendmail problems, adding users
To: None <amiga@NetBSD.ORG>
From: Calvin <diavolo@azure.engin.umich.edu>
List: amiga
Date: 07/23/1995 15:45:39
I'm not completely sure if these two problems are related, but they
cropped up simultaneously. I created two user accounts using vipw.
Both of these work great, root works great. Then I tried adding a third
user and one of the two accounts I originally made fails to work. This
is the passwd file:
root:*:0:0:di,University of Michigan,,:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:31:The devil himself:/root:
operator:*:2:20:System &:/usr/guest/operator:/bin/csh
bin:*:3:7:Binaries Commands and Source,,,:/:/dev/null
games:*:7:13:Games pseudo-user:/usr/games:
uucp:*:66:1:UNIX-to-UNIX Copy:/var/spool/uucppublic:/usr/libexec/uucp/uucico
nobody:*:32767:9999:Unprivileged user:/nonexistent:/dev/null
ingres:*:267:74:& Group:/usr/ingres:/bin/csh
falcon:*:32766:31:Prof. Steven &:/usr/games:/usr/games/wargames
diavolo:*:100:100:Calvin,University of Michigan,,313-995-8912:/home/diavolo:/bin/csh
mounia:*:101:100:Kathy,1000 oakland ,995-8912 ,1-810-344-4964 :/home/mounia:/bin/csh
rodc:*:102:100:rod,,,:/home/rodc:/bin/csh
The accounts diavolo and mounia were made at the same time and worked.
Then I added rodc the same way. And the mounia account broke. The rodc
account didn't work. The exact error occurs when logging in, it accepts
the password and then it prints out the motd, and it goes:
/bin/csh: Permission denied.
I tried to su to these accounts from root, and the error it gives is that
/bin/csh not found. I checked the perms on /bin/csh and they're fine. I
can log in using the diavolo and root accounts. Is there a file I broke
to cause this? Why can't /bin/csh be found?
I'm having a problem with sendmail. Specifically, I cant seem to
send mail to root from root! I can send mail to any user, from
any other user except when I'm root. MY installation has only been
running about 2 days, but on the first day I was e-mailed the daily
insecurity report, and another message (to root). Then after that,
all additional insecurity reports are backed up in the queue. I
can't seem to find the reason. This is the output from mailq -v:
Mail Queue (10 requests)
--Q-ID-- --Size-- -Priority- ---Q-Time--- -----------Sender/Recipient-----------
DAA03003 0 30021 Jul 21 03:55 root
(Operating system error: Error 0)
root
DAA02944 0 30029 Jul 21 03:49 root
(Operating system error: Error 0)
root
DAA02958 0 30029 Jul 21 03:50 root
(Operating system error: Error 0)
root
DAA02971 0 30030 Jul 21 03:51 root
(Operating system error: Error 0)
root
DAA03010 4 30032 Jul 21 03:56 root
(Operating system error: Error 0)
root
EAA03088 12 30035 Jul 21 04:05 root
(Operating system error: Error 0)
(---diavolo:root---)
diavolo
EAA03077 0 30036 Jul 21 04:03 root
(Operating system error: Error 0)
root
EAA03146 26 30074 Jul 21 04:11 root
(Operating system error: Error 0)
(---diavolo:root---)
diavolo
CAA02877 1610 31639 Jul 21 02:13 root
(Operating system error: Error 0)
root
CAA02873 5779 35819 Jul 21 02:13 root
(Operating system error: Error 0)
root
The size 0 messages are test messages that I tried to send.
This is the the tail end of the /var/log/maillog:
Jul 21 04:05:13 gotham sendmail[3088]: EAA03088: from=root, size=35, class=0, pri=30035, nrcpts=1, msgid=<199507210405.EAA03088@localhost>, relay=root@localhost
Jul 21 04:05:13 gotham sendmail[3091]: /etc/pwd.db: Permission denied
Jul 21 04:05:13 gotham sendmail[3091]: EAA03088: SYSERR(UID1): Cannot exec /usr/libexec/mail.local: Permission denied
Jul 21 04:05:14 gotham sendmail[3090]: EAA03088: to=diavolo, ctladdr=root (0/0), delay=00:00:02, mailer=local, stat=Operating system error: Error 0
Jul 21 04:11:00 gotham sendmail[3144]: alias database /etc/aliases rebuilt by root
Jul 21 04:11:00 gotham sendmail[3144]: /etc/aliases: 14 aliases, longest 10 bytes, 162 bytes total
Jul 21 04:11:21 gotham sendmail[3146]: EAA03146: from=root, size=74, class=0, pri=30074, nrcpts=1, msgid=<199507210411.EAA03146@localhost>, relay=root@localhost
Jul 21 04:11:22 gotham sendmail[3149]: /etc/pwd.db: Permission denied
Jul 21 04:11:22 gotham sendmail[3149]: EAA03146: SYSERR(UID1): Cannot exec /usr/libexec/mail.local: Permission denied
Jul 21 04:11:22 gotham sendmail[3148]: EAA03146: to=diavolo, ctladdr=root (0/0), delay=00:00:01, mailer=local, stat=Operating system error: Error 0
The main problem that I see here is that when I'm logged in as root,
either logged in from the console or su'd, ... when I e-mail root, it
outputs an error that /etc/pwd.db: Permission denied, and that mail.local
can't be read. Here are the perms on the two files and associated dirs:
gotham# ls -la /etc/pwd.db
-rw-r--r-- 1 root wheel 40960 Jul 19 23:49 /etc/pwd.db
gotham# ls -la / | grep etc
drwxr-xr-x 9 root wheel 1536 Jul 21 04:11 etc
gotham# ls -la /usr/libexec/mail.local
-r-sr-xr-x 1 root bin 24576 Oct 21 1994 /usr/libexec/mail.local
gotham# ls -la / | grep usr
lrwxr-x--- 1 root wheel 11 Jul 20 03:32 sys -> usr/src/sys
drwxr-xr-x 15 root wheel 512 Jul 19 20:59 usr
gotham# ls -la /usr | grep libexec
drwxr-xr-x 4 root wheel 1024 Jul 19 02:26 libexec
Any help appreciated. Sorry about the huge messy message.
--
o/ \o/ o <o o o o She walks in beauty, like the night
<| | /|\ |> <|><|> <|\ Of cloudless climes and starry skies;
/| / \ /| / \ // \\ / \ And all that's best of dark and bright
"""""""""""""""""""""""""""" Meet in her aspect and her eyes. (Byron)