WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: path of sftp-server binary different in openssh extension in corepure64  (Read 3920 times)

Offline nagtiny

  • WikiUser
  • *
  • Posts: 7
hi,
in the 32bit openssh extension the path to the sftp-server binary is /usr/local/libexec/sftp-server, in the 64bit version its in /usr/local/lib/openssh/sftp-server.
is there a reason for this or could/should this be unified?

thank you,
nagtiny

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6853
    • My Community Forum
Well, each one looks wrong. /usr/local/sbin would be better.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline nagtiny

  • WikiUser
  • *
  • Posts: 7
hm, in ubuntu its in /usr/lib/openssh/sftp-server, in arch its /usr/lib/ssh/sftp-server. according to the manpage of sftp-server, "sftp-
       server is not intended to be called directly, but from sshd(8) using the Subsystem option."
maybe thats the reason not to put it into sbin?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9071
the "make install" routine in different packages treats libexec files differently.

By default, they can be installed to:

$PREFIX/libexec
$PREFIX/libexec/package_name
$PREFIX/lib/package_name

..and probably others besides.

For consistency, I have been adjusting the ./configure switches, where necessary, so that libexec files are installed in /usr/local/lib/package_name.

Note that, since the libexec files are not called directly, the actually location is not that important, but cannot be changed after installation.