Re: [exim] group daemon was not found ?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Wakko Warner
Date:  
À: Pablo L. Arturi
CC: exim-users
Sujet: Re: [exim] group daemon was not found ?
Pablo L. Arturi wrote:
> > What's in /etc/nsswitch? It may be possible that you're not using
> > /etc/group
>
> /etc/nsswitch just doesn't exist.


I have never seen a linux system with libc6 that did not have nsswitch. I'm
fairly sure your system should have it.
I'm running debian and I do have /etc/nsswitch as follows:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         ldap files
group:          ldap files
shadow:         ldap files


hosts:          files dns
networks:       files


protocols:      db files
services:       db files
ethers:         db files
rpc:            db files


netgroup:       nis


for passwd, group and shadow, yours should probably say compat if you wish
to copy my file. I do use LDAP for user information and it falls back to
files.

> > This will do a lookup of daemon from group according to libc's view of the
> > group database.
> > perl -e '(@a)=getgrnam("daemon");$"=":";print "@a\n";'
> >
> > My system shows this:
> > daemon:x:1:
>
> Mine is showing:
>
> [root@ns1 log]# perl -e '(@a)=getgrnam("daemon");$"=":";print "@a\n";'
> daemon:x:2:root bin daemon


Notice you are running as root here. I'm willing to bet that the
permissions on /etc/group are not allowing it to be read by exim since exim
does not run as root. Do ls -l /etc/group and past that line.

My /etc/group:
-rw-r--r-- 1 root root 599 May 27 20:49 /etc/group

Also, passwd should have the same permissions.
If you have /etc/shadow, it should not be world readable.

--
Lab tests show that use of micro$oft causes cancer in lab animals
Got Gas???