On Fri, 24 Oct 2014 09:53:40 +0000 Clint Adams <cl...@debian.org> wrote: > On Fri, Oct 24, 2014 at 06:53:43AM +0200, Samuel Amo wrote: > > samuel@****:~$ fakeroot id > > uid=0(root) gid=0 > > groups=0,24,25,26,29,30,40,44,46,105,109,110,111,113,116,124,1000,1002 > > samuel@****:~$ getent group root > > samuel@****:~$ > > As you can see, your user/system is unaware of any group names. > > You might want to check the permissions and contents of /etc/nsswitch.conf > or /etc/group, but this is clearly not related to fakeroot. > >
The problem is that the command without fakeroot works very well, and does not care about getent or nsswitch: samuel@****:~$ sudo chgrp root anyfile samuel@****:~$ So I believe that the problem is on the fakeroot side (because it should simulate the real chgrp behaviour, am I wrong?). By the way my /etc/group file is fine, and contains the line root:x:0: Just in case, here is my nsswitch, but I maintain that it should not be of any importance as of the standard behaviour of chgrp: # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service Switch"' for information about this file. passwd: compat group: compat shadow: compat hosts: files dns mdns4_minimal [NOTFOUND=return] wins mdns4 networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis