Avatar of David VanZandt
David VanZandtFlag for United States of America

asked on 

Linux executable is throwing a tantrum.

My situation is that I cannot execute (what appears to be) a valid program. The platform is Ubuntu 20.04, on Hyper-V (Windows 10 bld 1903). I have installed Kerberos, seemingly by-the-book: root:root owner, 755 file permissions. The klinit object is binary, execution is attempted with both "klist" and "/.klist", results is "no such file or directory". Access is attempted from the default directory.

The installation script for Windows from the same source runs without error.

Any insight is appreciated.
InstallationHyper-VUbuntuLinuxLinux OS Dev

Avatar of undefined
Last Comment
David VanZandt
Avatar of arnold
Flag of United States of America image

klist what is the error?
ldd klist what happens?
/.kilst means at the root folder find a file .klist
ldd is a way to make sure all libraries that the application may rely on are installed.
file klist will tell you whether it is a binary or a script file

klinit should be kinit.

Did you configure the authentication to tie into the AD?
usually kerbeerous is setup after the system is joined to the domain net join ads ...
or use the GUI tools to do the same.
Avatar of David VanZandt


Hi Arnold, klist returns "bash: /usr/local/krb5/bin/klist: No such file or directory"l
ldd klist is interesting, "not a dynamic executable"

I don't follow your last paragraph, my bad. If this were successful then kinit would prompt me for my principal name, domain, password, and Yubikey code, returning a ticket. With the ticket I can ssh/putty into a remote server with GSSAPI credentials.

Your reply prompted me to start searching for the string "cannot execute binary file". One site, https://www.unix.com/red-hat/247751-cannot-execute-binary-file.html, led me to recheck that the machine is (uname) is x86_64. As I recall, the binaries came from a 32-bit source. I'm thinking to remove the krb5 directories and to reinstall from the 64-bit source.

Avatar of Dr. Klahn
Dr. Klahn

Did you install Kerberos from the Ubuntu install kit, or from the source kit?

If it was built from the source kit then it's very likely that it won't work at all, because it builds into directories other than the places that the Ubuntu executables expect them.
Avatar of David Favor
David Favor
Flag of United States of America image

Since you said, "The installation script for Windows from the same source runs without error."

Likely the problem is you used an "installation script", which will almost surely fail.

You should have installed one of these Ubuntu Focal packages, to have klinit available...

net17 # klinit

Command 'klinit' not found, did you mean:

  command 'kinit' from deb heimdal-clients (7.7.0+dfsg-1ubuntu1)
  command 'kinit' from deb krb5-user (1.17-6ubuntu4)

Try: apt install <deb name>

Open in new window

Suggestion: Remove whatever you installed. Install one of the 2x packages above. Retest.
Avatar of noci

Is SELinux in enforcing mode?... Then programs may not be allowed to access various protected resources.

Avatar of David VanZandt
David VanZandt
Flag of United States of America image

Blurred text
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews


IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo