Public bug reported:

Binary package hint: authbind

Somehow authbind doesn't work when you build it with dpkg-buildpackage
but works if you install it manually with make install.

authbind 1.2.0
Description:    Ubuntu 8.10
Release:        8.10

# apt-get source authbind
# cd authbind-1.2.0
# dpkg-buildpackage
# dpkg -i ../authbind_1.2.0_i386.deb

Login as required user.
spaceg...@marcus:~$ which authbind
/usr/bin/authbind
spaceg...@marcus:~$ ls -la /etc/authbind/byport
total 8
drwxr-xr-x 2 root      root      4096 2009-08-10 13:14 .
drwxr-xr-x 5 root      root      4096 2009-08-10 13:44 ..
-rwxr-xr-x 1 spacegame spacegame    0 2009-08-10 13:14 500
spaceg...@marcus:~$ authbind nc -v -v -l -p 500
Can't grab 0.0.0.0:500 with bind : Permission denied

Then install manually:
r...@marcus:~/test/authbind-1.2.0# apt-get remove authbind
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  authbind
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 131kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 45426 files and directories currently installed.)
Removing authbind ...
Processing triggers for man-db ...
r...@marcus:~/test/authbind-1.2.0# make clean
rm -f authbind helper libauthbind.so.1.0 *.o *~ ./#*# *.bak *.new core
rm -f libauthbind.so* *.core
r...@marcus:~/test/authbind-1.2.0# make install
cc -g -O2 -Wall -Wwrite-strings -Wpointer-arith -Wimplicit -Wnested-externs 
-Wmissing-prototypes -Wstrict-prototypes -DMAJOR_VER='"1"' -DMINOR_VER='"0"' 
-DLIBAUTHBIND='"/usr/local/lib/authbind/libauthbind.so.1"' 
-DHELPER='"/usr/local/lib/authbind/helper"' -DCONFIGDIR='"/etc/authbind"' 
-D_GNU_SOURCE  -c -o authbind.o authbind.c
cc -g  authbind.o   -o authbind
cc -g -O2 -Wall -Wwrite-strings -Wpointer-arith -Wimplicit -Wnested-externs 
-Wmissing-prototypes -Wstrict-prototypes -DMAJOR_VER='"1"' -DMINOR_VER='"0"' 
-DLIBAUTHBIND='"/usr/local/lib/authbind/libauthbind.so.1"' 
-DHELPER='"/usr/local/lib/authbind/helper"' -DCONFIGDIR='"/etc/authbind"' 
-D_GNU_SOURCE  -c -o helper.o helper.c
cc -g  helper.o   -o helper
cc -D_REENTRANT -g -O2 -Wall -Wwrite-strings -Wpointer-arith -Wimplicit 
-Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -DMAJOR_VER='"1"' 
-DMINOR_VER='"0"' -DLIBAUTHBIND='"/usr/local/lib/authbind/libauthbind.so.1"' 
-DHELPER='"/usr/local/lib/authbind/helper"' -DCONFIGDIR='"/etc/authbind"' 
-D_GNU_SOURCE -c -o libauthbind.o -fPIC libauthbind.c
libauthbind.c: In function ‘find_any’:
libauthbind.c:50: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
libauthbind.c:51: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
libauthbind.c:52: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
libauthbind.c:53: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
libauthbind.c:54: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
ld -shared -soname libauthbind.so.1 -o libauthbind.so.1.0 libauthbind.o -ldl -lc
install -o root -g root -m 755 -d /usr/local/lib/authbind 
/usr/local/share/man/man1 /usr/local/share/man/man8
install -o root -g root -m 755 -s authbind /usr/local/bin/.
install -o root -g root -m 644  libauthbind.so.1.0 /usr/local/lib/authbind/.
strip --strip-unneeded /usr/local/lib/authbind/libauthbind.so.1.0
ln -sf libauthbind.so.1.0 /usr/local/lib/authbind/libauthbind.so.1
install -o root -g root -m 755 -s helper /usr/local/lib/authbind/.
chmod u+s /usr/local/lib/authbind/helper
install -o root -g root -m 755 -d /etc/authbind \
                        /etc/authbind/byport /etc/authbind/byaddr 
/etc/authbind/byuid

Login as required user:
spaceg...@marcus:~$ which authbind
/usr/local/bin/authbind
spaceg...@marcus:~$ authbind nc -v -v -l -p 500
listening on [any] 500 ...

Here you go.

** Affects: authbind (Ubuntu)
     Importance: Undecided
         Status: New

-- 
authbind doesn't work when you dpkg-buildpackage the source
https://bugs.launchpad.net/bugs/411355
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to