Bug#200701: apt-get install foo fails when invoked through sudo by a NFS homed user
Package: apt
Version: 0.5.5.1
Severity: important
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux bloup 2.4.21-bloup.peuh.net #1 dim jun 29 20:32:53 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=fr_FR.ISO-8859-1
Versions of packages apt depends on:
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
ii libgcc1 1:3.3.1-0pre0 GCC support library
ii libstdc++5 1:3.3.1-0pre0 The GNU Standard C++ Library v3
-- no debconf information
apt-get fails under the following conditions:
* apt-get is invoked by a non-privileged user through sudo
* the user home directory is located on a NFS partition, for which
the local root user has no root privileges.
* the user home directory has drastic permissions (700 mode)
Here is an example transcript :
loup@bloup:~ echo $HOME 0:15
/home/peuh/bloup
bloup@bloup:~ mount | grep /home/peuh 0:15
files:/home/peuh on /home/peuh type nfs (rw,nosuid,nodev,bg,addr=192.168.1.2)
bloup@bloup:~ ls -ld ~ 0:15
drwx------ 109 bloup peuh 8192 Jul 9 23:54 /home/peuh/bloup/
bloup@bloup:~ sudo apt-get install libmad0-dev 0:15
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
libmad0-dev
0 packages upgraded, 1 newly installed, 0 to remove and 59 not upgraded.
Need to get 0B/68.0kB of archives.
After unpacking 168kB of additional disk space will be used.
dpkg: failed to open configuration file `/home/peuh/bloup/.dpkg.cfg' for reading: Permission denied
E: Sub-process /usr/bin/dpkg returned an error code (2)
bloup@bloup:~ chmod 711 ~ Err 100 0:15
bloup@bloup:~ sudo apt-get install libmad0-dev 0:16
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
libmad0-dev
0 packages upgraded, 1 newly installed, 0 to remove and 59 not upgraded.
Need to get 0B/68.0kB of archives.
After unpacking 168kB of additional disk space will be used.
Selecting previously deselected package libmad0-dev.
(Reading database ... 168448 files and directories currently installed.)
Unpacking libmad0-dev (from .../libmad0-dev_0.15.0b-1_i386.deb) ...
Setting up libmad0-dev (0.15.0b-1) ...
bloup@bloup:~ 0:16
Reply to: