Skip to content

aosvc not working w/o netstat #13

@uncletoxa

Description

@uncletoxa

Hey, there are some linux distro that does not have netstat installed by default (like ubuntu 24.04). That ends up in aosvc not picking username properly:

Jul 01 13:48:29 laptop aosvc[17012]: 2024/07/01 13:48:29 credentials dir:/home//.aws/
Jul 01 13:48:29 laptop aosvc[17012]: 2024/07/01 13:48:29 updated /home//.aws/credentials file

Possible solutions:

  1. add advice to verify that netstat is installed in README
  2. use ss instead of netstat

Also, I think it would be a good idea to check that getLogin() does not return empty string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions