NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: getgrnam() with nss



In article <a2c5a589-6905-7c4f-ec82-34ea642d3403%lich.phys.spbu.ru@localhost>,
Dima Veselov  <kab00m%lich.phys.spbu.ru@localhost> wrote:
>Greetings,
>
>I have fresh 9.2 with nss_ldap working. I try to use dovecot on
>this system, but dovecot fail to run with the message:
>
>getgrnam(dovecot) failed: Operation not permitted
>
>The group dovecot is located in LDAP and is accessible:
>[root@mail01 dovecot]$ su -m dovecot -c "getent group dovecot"
>dovecot:*:99
>
>nssswitch.conf have this:
>group:      files ldap
>passwd:     files ldap
>
>Adding group with same id to /etc/group helped and the message 
>disappeared. That makes getgrnam() not using or not able to use
>nsswitch for some reason.
>
>This is suspicious: there is no problem with dovecot user also
>I wonder syscall being not permitted.
>
>Is that a dovecot problem using improper function or it is a
>NetBSD's getgrnam() problem not using NSS?

I would ktrace the process and see which syscall failed. getgrnam()
is a library function that can call many syscalls.

christos



Home | Main Index | Thread Index | Old Index