Mailing List Archives
Public Access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] Issues with .deb packages
- Date: Tue, 11 Dec 2012 13:06:15 +0000
- From: Brian Candler <B.Candler@xxxxxxxxx>
- Subject: [HTCondor-users] Issues with .deb packages
I am installing htcondor 7.8.6 under Ubuntu 12.04 LTS using the Debian
squeeze packages from http://research.cs.wisc.edu/htcondor/debian/
I have found a couple of issues.
1. We happen to have a user called 'mark' on the system I'm installing.
After installing, all the condor package files were owned by user 'mark'!
$ dpkg-query -L condor | xargs ls -ld | head
drwxr-xr-x 93 root root 4096 Dec 11 12:46 /etc
drwxr-xr-x 3 mark mark 4096 Dec 11 12:46 /etc/condor
-rw-r--r-- 1 mark mark 110805 Oct 25 06:33 /etc/condor/condor_config
-rw-r--r-- 1 mark mark 720 Oct 25 05:10 /etc/condor/condor_config.local
drwxr-xr-x 2 mark mark 4096 Oct 25 06:33 /etc/condor/config.d
drwxr-xr-x 2 root root 4096 Dec 11 12:46 /etc/default
-rwxr-xr-x 1 mark mark 5237 Oct 25 05:10 /etc/default/condor
drwxr-xr-x 2 root root 4096 Dec 11 12:46 /etc/init.d
-rwxr-xr-x 1 mark mark 19132 Oct 25 06:33 /etc/init.d/condor
drwxr-xr-x 10 root root 4096 Oct 8 15:19 /usr
...
The 'mark' uid/gid (1001/1001) is unrelated to the 'condor' uid/gid
(108/114).
Now, in the actual package, the files are owned by user/group "slot1":
$ dpkg-deb -c /var/cache/apt/archives/condor_7.8.6-73238_amd64.deb | head
drwxr-xr-x slot1/slot1 0 2012-10-25 06:33 ./etc/
drwxr-xr-x slot1/slot1 0 2012-10-25 06:33 ./etc/condor/
-rw-r--r-- slot1/slot1 110805 2012-10-25 06:33 ./etc/condor/condor_config
-rw-r--r-- slot1/slot1 720 2012-10-25 05:10 ./etc/condor/condor_config.local
drwxr-xr-x slot1/slot1 0 2012-10-25 06:33 ./etc/condor/config.d/
drwxr-xr-x slot1/slot1 0 2012-10-25 06:33 ./etc/init.d/
-rwxr-xr-x slot1/slot1 19132 2012-10-25 06:33 ./etc/init.d/condor
drwxr-xr-x slot1/slot1 0 2012-10-25 06:33 ./etc/default/
-rwxr-xr-x slot1/slot1 5237 2012-10-25 05:10 ./etc/default/condor
drwxr-xr-x slot1/slot1 0 2012-10-25 06:33 ./usr/
...
And it turns out this has uid/gid 1001:
$ mkdir tmp
$ cd tmp
$ ar x /var/cache/apt/archives/condor_7.8.6-73238_amd64.deb
$ tar --numeric-owner -tvzf data.tar.gz | head
drwxr-xr-x 1001/1001 0 2012-10-25 06:33 ./etc/
drwxr-xr-x 1001/1001 0 2012-10-25 06:33 ./etc/condor/
-rw-r--r-- 1001/1001 110805 2012-10-25 06:33 ./etc/condor/condor_config
-rw-r--r-- 1001/1001 720 2012-10-25 05:10 ./etc/condor/condor_config.local
drwxr-xr-x 1001/1001 0 2012-10-25 06:33 ./etc/condor/config.d/
drwxr-xr-x 1001/1001 0 2012-10-25 06:33 ./etc/init.d/
-rwxr-xr-x 1001/1001 19132 2012-10-25 06:33 ./etc/init.d/condor
drwxr-xr-x 1001/1001 0 2012-10-25 06:33 ./etc/default/
-rwxr-xr-x 1001/1001 5237 2012-10-25 05:10 ./etc/default/condor
drwxr-xr-x 1001/1001 0 2012-10-25 06:33 ./usr/
So I think the package has been wrongly built, and the files should be
owned by root/root 0/0.
Workaround:
dpkg-query -L condor | xargs chown 0:0
2. Is there a package signing key? I couldn't find it. Without it, I have no
assurance of package integrity. For now I am working around this using:
deb [arch=amd64 trusted=yes] http://research.cs.wisc.edu/htcondor/debian/stable/ squeeze contrib
in /etc/apt/sources.list
Many thanks,
Brian.