Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed: Unknown OS Type #196

Closed
benji1000 opened this issue Sep 27, 2016 · 2 comments
Closed

Failed: Unknown OS Type #196

benji1000 opened this issue Sep 27, 2016 · 2 comments

Comments

@benji1000
Copy link

Hi,

I successfully ran Vuls against one of my servers, but I have a problem when running Vuls against another one of my servers. When running vuls prepare, it fails with this error log:

INFO [localhost] Detecting OS... 
INFO [localhost] Detecting OS of servers... 
ERROR [localhost] (1/1) Failed: web, err: [Unknown OS Type]
ERROR [localhost] Failed to init servers: No scannable servers

The server I'm trying to scan is a standard Ubuntu 14.04. How come it fails to detect the OS version?

I saw in the code that the detection is based on this module, but I'm not familiar with Ruby nor the Go language. As far as I can understand, all the commands indicated in this snippet of code seem to output useful info. Should I report this to specinfra directly?

cat /etc/debian_version:

jessie/sid

lsb_release -ir:

Distributor ID: Ubuntu
Release:        14.04

cat /etc/lsb-release:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"

Thanks for your help!

@kotakanbe
Copy link
Member

Hi @benji1000

Please scan with --debug option to get detail information.

@benji1000
Copy link
Author

Thank you for your answer.

I added a user on the server I wanted to test using the useradd command, but I didn't specify a shell. Turns out, the default shell for my system was set to /bin/sh, and Vuls runs the command set -o pipefail, which is incompatible with /bin/sh, and requires /bin/bash as shell to work.

Re-creating the user using --shell /bin/bash option in useradd solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants