openssh and Ssh.bin

Bruce Dubbs bdubbs at swbell.net
Fri Nov 4 08:35:26 PST 2005


shane.shields at erkunttarim.com.tr wrote:
> Hi all,
> 
> Compiling openssh I noticed that it puts Ssh.bin directly into 
> /usr/share. This doesnt seem to be quite right so I would suggest 
> putting that file into /usr/share/openssh by passing 
> --datadir=/usr/share/openssh to configure.

Its an interesting file.  :)

$ file /usr/share/Ssh.bin
/usr/share/Ssh.bin: DBase 3 data file (507582464 records)

$ ll /usr/share/Ssh.bin
-rw-r--r--  1 root root 600 Sep  2 01:47 /usr/share/Ssh.bin

Looking at the openssh source:

[/usr/src/openssh/openssh-4.2p1]$ grep -r Ssh.bin *
contrib/aix/inventory.sh:# /usr/local/share/Ssh.bin:
contrib/redhat/openssh.spec:     rm -f
   $RPM_BUILD_ROOT/usr/share/openssh/Ssh.bin
contrib/redhat/openssh.spec:%attr(0644,root,root)
   %{_datadir}/openssh/Ssh.bin
README.smartcard:       sectok> junload Ssh.bin
README.smartcard:       sectok> jload /usr/libdata/ssh/Ssh.bin
scard/.cvsignore:Ssh.bin
scard/Makefile.in:#Ssh.bin:  Ssh.bin.uu
scard/Makefile.in:#     uudecode Ssh.bin.uu
scard/Makefile.in:#     rm -rf Ssh.bin
scard/Makefile.in:      uudecode Ssh.bin.uu
scard/Makefile.in:install: $(srcdir)/Ssh.bin
scard/Makefile.in:      $(INSTALL) -m 0644 $(srcdir)/Ssh.bin
   $(DESTDIR)$(datadir)/Ssh.bin
scard/Ssh.bin.uu:begin 644 Ssh.bin
scard/Makefile:#Ssh.bin:  Ssh.bin.uu
scard/Makefile:#        uudecode Ssh.bin.uu
scard/Makefile:#        rm -rf Ssh.bin
scard/Makefile: uudecode Ssh.bin.uu
scard/Makefile:install: $(srcdir)/Ssh.bin
scard/Makefile: $(INSTALL) -m 0644 $(srcdir)/Ssh.bin
   $(DESTDIR)$(datadir)/Ssh.bin

It looks like the only way the file is used is if the --with-sectok
switch is used, and then only when the file is specified manually in
response to a settok> prompt.

Perhaps the better option is to delete the file in the absence of a
smart card enabled openssh.

  -- Bruce



More information about the blfs-dev mailing list