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

Meshagent linux - Elevated permissions are required to install this software #6698

Open
my1770 opened this issue Jan 15, 2025 · 5 comments
Open
Labels

Comments

@my1770
Copy link

my1770 commented Jan 15, 2025

Clean installation of meshcentral
Ubuntu 22.04
installed via mc-azure-ubuntu1804.sh script

In the browser, I click add mesh agent.
I choose: Linux / BSD / macOS Binary Installer
I copy the command: wget -O meshagent --no-check-certificate "https://172.24.184.128/meshagents?id=....."

On a computer with Linux 6.1.89-generic-x86_64 in the terminal, user root. The command downloads meshaget.
I do chmod +x ./meshaget
I run as root /root/meshaget -install
It says there are no privileges.

2025-01-15_14-21

Via sudo from another user the same thing
How to install an agent on linux?

Server Software (please complete the following information):

  • OS: Ubuntu 22.04
  • Network: LAN

Your config.json file

{
  "$schema": "https://raw.githubusercontent.com/Ylianst/MeshCentral/master/meshcentral-config-schema.json",
  "__comment1__": "This is a simple configuration file, all values and sections that start with underscore (_) are ignored. Edit a section and remove the _ in front of the name. Refer to the user's guide for details.",
  "__comment2__": "See node_modules/meshcentral/sample-config-advanced.json for a more advanced example.",
  "settings": {
    "_cert": "myserver.mydomain.com",
    "_WANonly": true,
    "LANonly": true,
    "_sessionKey": "MyReallySecretPassword1",
    "_port": 443,
    "_aliasPort": 443,
    "_redirPort": 80,
    "_redirAliasPort": 80
  },
  "domains": {
    "": {
      "_title": "MyServer",
      "_title2": "Servername",
      "_minify": true,
      "_newAccounts": true,
      "_userNameIsEmail": true
    }
  },
  "_letsencrypt": {
    "__comment__": "Requires NodeJS 8.x or better, Go to https://letsdebug.net/ first before trying Let's Encrypt.",
    "email": "[email protected]",
    "names": "myserver.mydomain.com",
    "skipChallengeVerification": true,
    "production": false
  }
}

@my1770 my1770 added the bug label Jan 15, 2025
@DaanSelen
Copy link

May I ask why you want the binary and not the script installation?

@si458
Copy link
Collaborator

si458 commented Jan 16, 2025

you dont specify what OS/version the remote machine is running

the code in the agent simply runs /usr/bin/id -u and expects it to be 0
so try running the command manually and see what its output is

@my1770
Copy link
Author

my1770 commented Jan 17, 2025

Image

When using the script it also says: Administrator permissions needed...

Image

@si458
Copy link
Collaborator

si458 commented Jan 17, 2025

You need to check id -u

Edit. Also again what os/version is the remote device

@my1770
Copy link
Author

my1770 commented Jan 17, 2025

Image

Remote device Rosa linux 2021 64bit

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

No branches or pull requests

3 participants