Debian Bug report logs - #618473
general: Problems to handle NIS group names

Package: nfs-common; Maintainer for nfs-common is Debian kernel team <debian-kernel@lists.debian.org>; Source for nfs-common is src:nfs-utils.

Reported by: Christian Andretzky <Christian.Andretzky@ETIT.TU-Chemnitz.DE>

Date: Tue, 15 Mar 2011 14:15:05 UTC

Severity: important

Tags: squeeze

Done: Arthur de Jong <adejong@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#618473; Package general. (Tue, 15 Mar 2011 14:15:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian Andretzky <Christian.Andretzky@ETIT.TU-Chemnitz.DE>:
New Bug report received and forwarded. Copy sent to debian-devel@lists.debian.org. (Tue, 15 Mar 2011 14:15:08 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Christian Andretzky <Christian.Andretzky@ETIT.TU-Chemnitz.DE>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: general: Problems to handle NIS group names
Date: Tue, 15 Mar 2011 15:10:48 +0100
Package: general
Severity: important
Tags: squeeze

I've really no idea, which package(s) are responsible for this problem.

In my log files I can find messages like:

Mar 15 14:56:09 oedibus automount[1983]: set_tsd_user_vars: failed to get group info from getgrgid_r

As the result the output from ls command looks like

...
drwx------  21 saadi       12000  4096 19. Nov 12:22 saadi
...

The output of 'ypcat group' shows the correct group names.

If I dont use autofs and mount the filesystem manual using 'mount', the same problem happens.

The problem is important for us because many maintenance tasks need the correct group information to
set the correct permissions.

Christian

P.S. The apt-policy below includes the testing release but no testing packages are installed at this time.

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Information forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#618473; Package general. (Thu, 17 Mar 2011 20:06:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to 618473@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to debian-devel@lists.debian.org. (Thu, 17 Mar 2011 20:06:08 GMT) Full text and rfc822 format available.

Message #10 received at 618473@bugs.debian.org (full text, mbox):

From: Arthur de Jong <adejong@debian.org>
To: Christian Andretzky <Christian.Andretzky@ETIT.TU-Chemnitz.DE>, 618473@bugs.debian.org
Subject: Re: Bug#618473: general: Problems to handle NIS group names
Date: Thu, 17 Mar 2011 21:03:48 +0100
[Message part 1 (text/plain, inline)]
reassign nfs-common
thanks

On Tue, 2011-03-15 at 15:10 +0100, Christian Andretzky wrote:
> I've really no idea, which package(s) are responsible for this problem.

Reassigning to nfs-common because that seems to be the most likely
candidate (assuming autofs is used to mount nfs filesystems).

> In my log files I can find messages like:
> 
> Mar 15 14:56:09 oedibus automount[1983]: set_tsd_user_vars: failed to get group info from getgrgid_r
> 
> As the result the output from ls command looks like
> 
> ...
> drwx------  21 saadi       12000  4096 19. Nov 12:22 saadi
> ...
> 
> The output of 'ypcat group' shows the correct group names.
> 
> If I dont use autofs and mount the filesystem manual using 'mount',
> the same problem happens.

It would really be hulpful if you could post more
information. /etc/nsswitch.conf, /etc/auto.master, nfs mount settings
(nfs version), etc come to mind.

I know nfs4 uses and idmap that has caused issues in the past if the
naming service is not available during boot (see e.g. #500778).

-- 
-- arthur - adejong@debian.org - http://people.debian.org/~adejong --
[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package 'general' to 'nfs-common'. Request was from Arthur de Jong <adejong@debian.org> to control@bugs.debian.org. (Thu, 17 Mar 2011 20:45:03 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#618473; Package nfs-common. (Thu, 17 Mar 2011 22:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Professur Digital- und Schaltungstechnik <dst@etit.tu-chemnitz.de>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Thu, 17 Mar 2011 22:30:05 GMT) Full text and rfc822 format available.

Message #17 received at 618473@bugs.debian.org (full text, mbox):

From: Professur Digital- und Schaltungstechnik <dst@etit.tu-chemnitz.de>
To: 618473@bugs.debian.org
Subject: Re: Bug#618473: general: Problems to handle NIS group names
Date: Thu, 17 Mar 2011 22:54:52 +0100
Arthur de Jong schrieb:
> reassign nfs-common
> thanks
> 
> On Tue, 2011-03-15 at 15:10 +0100, Christian Andretzky wrote:
>> I've really no idea, which package(s) are responsible for this problem.
> 
> Reassigning to nfs-common because that seems to be the most likely
> candidate (assuming autofs is used to mount nfs filesystems).
> 
>> In my log files I can find messages like:
>>
>> Mar 15 14:56:09 oedibus automount[1983]: set_tsd_user_vars: failed to get group info from getgrgid_r
>>
>> As the result the output from ls command looks like
>>
>> ...
>> drwx------  21 saadi       12000  4096 19. Nov 12:22 saadi
>> ...
>>
>> The output of 'ypcat group' shows the correct group names.
>>
>> If I dont use autofs and mount the filesystem manual using 'mount',
>> the same problem happens.
> 
> It would really be hulpful if you could post more
> information. /etc/nsswitch.conf, /etc/auto.master, nfs mount settings
> (nfs version), etc come to mind.
> 
> I know nfs4 uses and idmap that has caused issues in the past if the
> naming service is not available during boot (see e.g. #500778).
> 
I'll post only the 'active' lines of each file. All other settings are 
default/unchanged.

/etc/nsswitch.conf:

passwd:         compat
group:          compat
shadow:         compat
hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis

/etc/auto.master:

/home/etit/dst  /etc/auto.dst

/etc/auto.dst:

global     -fstype=nfs,nolock,intr,rw,acregmax=5 fqdn:/home/etit/dst/global
user       -fstype=nfs,nolock,intr,rw,acregmax=5 fqdn:/home/etit/dst/user
fs01       -fstype=nfs,nolock,intr,rw,acregmax=5 fqdn:/home/etit/dst/fs01

/etc/default/nfs-common:
NEED_STATD=
STATDOPTS=
NEED_IDMAPD=
NEED_GSSD=

/etc/default/nfs-kernel-server:

RPCNFSDCOUNT=8
RPCNFSDPRIORITY=0
RPCMOUNTDOPTS=--manage-gids
NEED_SVCGSSD=
RPCSVCGSSDOPTS=

dpkg -l | grep nfs:

ii  kernel-patch-nfs-ngroups                             4.58.debian.20100106.1 
           transitional dummy package

ii  libnfsidmap2                                         0.23-2 
            An nfs idmapping library

ii  linux-patch-nfs-ngroups                              4.58.debian.20100106.1 
           Client-side bypassing of ngroups limitation in NFS protocol

ii  nfs-common                                           1:1.2.2-4 
            NFS support files common to client and server

ii  nfs-kernel-server                                    1:1.2.2-4 
            support for NFS kernel server

ii  nfs4-acl-tools                                       0.3.3-1 
            Commandline and GUI ACL utilities for the NFSv4 client

ii  nfswatch                                             4.99.11-1 
            Program to monitor NFS traffic for the console

/etc/default/autofs:

MASTER_MAP_NAME="/etc/auto.master"
TIMEOUT=300
BROWSE_MODE="yes"

Cheers, Christian





Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#618473; Package nfs-common. (Mon, 04 Apr 2011 09:03:16 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian Andretzky <Christian.Andretzky@MB.TU-Chemnitz.DE>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Mon, 04 Apr 2011 09:03:22 GMT) Full text and rfc822 format available.

Message #22 received at 618473@bugs.debian.org (full text, mbox):

From: Christian Andretzky <Christian.Andretzky@MB.TU-Chemnitz.DE>
To: 618473@bugs.debian.org
Subject: New informations regarding this problem
Date: Mon, 04 Apr 2011 10:33:29 +0200
During the weekend I've created a machine for testing which acts as nis server 
(and client of course) and I could see the same problem (without nfs, autofs 
and others). So I assume, that the nis package is responsible for this problem.

The nis package is (output from dpkg -l nis):
ii nis 3.17-31 clients and daemons for the Network Information Service (NIS)

I could also see another problem with the nis package:

If I try to do 'dpkg-reconfigure nis' I receive the following message:

dpkg: version 'nis_3.17-18' has bad syntax: invalid character in version number

Hope this helps

Christian

-- 
Name:  Christian Andretzky  | Address: TU Chemnitz, Fakultaet fuer          |
Phone: ++49 +371 531 32130  |          Elektrotechnik/Informationstechnik   |
FAX:   ++49 +371 531 832130 |          Reichenhainer Str. 70                |
mail:  Christian.Andretzky@MB.TU-Chemnitz.DE |  D-09107 Chemnitz            |
PGP:   public key avaliable via public key server                           |
In a world without walls and fences, there is no need for windows and gates |
"The Box said 'Windows XP or better'. - So I installed Linux."              |




Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#618473; Package nfs-common. (Thu, 14 Apr 2011 13:06:16 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian Andretzky <Christian.Andretzky@MB.TU-Chemnitz.DE>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Thu, 14 Apr 2011 13:06:16 GMT) Full text and rfc822 format available.

Message #27 received at 618473@bugs.debian.org (full text, mbox):

From: Christian Andretzky <Christian.Andretzky@MB.TU-Chemnitz.DE>
To: 618473@bugs.debian.org
Subject: Problem solved
Date: Thu, 14 Apr 2011 15:05:10 +0200
Hi,
after a long time of searching I found the program which is responsible for 
this problem: /usr/bin/grpck (from package passwd)

The command 'grpck -s' removes any NIS-related lines (lines starting with '+') 
from /etc/group file without any notification (neither a message nor a return 
state different from 0)

Because both commands (adding the nis lines to /etc/group and also sorting 
/etc/group) are part of cron jobs it was difficult to find.

Sorry for the false alarm.

I'll create a separate Bug report for the passwd package.

Cheers, Christian
-- 
Name:  Christian Andretzky  | Address: TU Chemnitz, Fakultaet fuer          |
Phone: ++49 +371 531 32130  |          Elektrotechnik/Informationstechnik   |
FAX:   ++49 +371 531 832130 |          Reichenhainer Str. 70                |
mail:  Christian.Andretzky@MB.TU-Chemnitz.DE |  D-09107 Chemnitz            |
PGP:   public key avaliable via public key server                           |
In a world without walls and fences, there is no need for windows and gates |
"The Box said 'Windows XP or better'. - So I installed Linux."              |




Reply sent to Arthur de Jong <adejong@debian.org>:
You have taken responsibility. (Thu, 14 Apr 2011 18:57:06 GMT) Full text and rfc822 format available.

Notification sent to Christian Andretzky <Christian.Andretzky@ETIT.TU-Chemnitz.DE>:
Bug acknowledged by developer. (Thu, 14 Apr 2011 18:57:07 GMT) Full text and rfc822 format available.

Message #32 received at 618473-done@bugs.debian.org (full text, mbox):

From: Arthur de Jong <adejong@debian.org>
To: Christian Andretzky <Christian.Andretzky@MB.TU-Chemnitz.DE>, 618473-done@bugs.debian.org
Subject: Re: Bug#618473: Problem solved
Date: Thu, 14 Apr 2011 20:48:48 +0200
[Message part 1 (text/plain, inline)]
On Thu, 2011-04-14 at 15:05 +0200, Christian Andretzky wrote:
> after a long time of searching I found the program which is responsible for 
> this problem: /usr/bin/grpck (from package passwd)

Thanks for the follow-up and nice catch. Closing this bug.

-- 
-- arthur - adejong@debian.org - http://people.debian.org/~adejong --
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 13 May 2011 07:42:57 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 18:56:09 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.