[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nscd returns random login when UIDs are shared (glibc 2.2.5)
From: |
Marc MERLIN |
Subject: |
nscd returns random login when UIDs are shared (glibc 2.2.5) |
Date: |
Wed, 27 Mar 2002 18:36:01 -0800 |
User-agent: |
Mutt/1.3.25i |
Hi,
Forgive me if this is not a bug, I couldn't find a way to fix my problem.
I have a setup with shared root accounts where every admin has its own root
account with UID/GID 0
root:*:0:0:root:/root:/bin/bash
Radmin1:x:0:0:admin1 root:/root:/bin/bash
Radmin2:x:0:0:admin2 root:/root:/bin/bash
The problem is that nscd doesn't cope well with that and pseudo-randomly
returnsRadmin1 or root for uid 0.
As in:
stan:~# l /etc/passwd
-rw-r--r-- 1 Rmerlin root 2642 Mar 21 11:25 /etc/passwd
stan:~# id
uid=0(Rmerlin) gid=0(root) groups=0(root)
stan:~# groups root
root : root localprint
stan:~# id
uid=0(root) gid=0(root) groups=0(root)
stan:~# l /etc/passwd
-rw-r--r-- 1 root root 2642 Mar 21 11:25 /etc/passwd
stan:~# l /lib/libc.so.6
lrwxrwxrwx 1 root root 13 Mar 21 10:15 /lib/libc.so.6 ->
libc-2.2.5.so*
nscd.conf has:
enable-cache passwd yes
positive-time-to-live passwd 30
negative-time-to-live passwd 10
suggested-size passwd 1999
check-files passwd yes
Is this a bug?
Is there a workaround, i.e. a way to have nscd not cache UID 0, or always map
it back to the first entry in /etc/passwd?
Thanks,
Marc
--
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger address@hidden for PGP key
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- nscd returns random login when UIDs are shared (glibc 2.2.5),
Marc MERLIN <=