Inicio Linux & Systems Networks & Infrastructure Cybersecurity Cloud & DevOps SIEM & Monitoring DFIR & Threat Intel Development & Other Todas las categorias Herramientas

PowerBroker Error: Received error while querying lwsmd. [code 0x00000002]

PowerBroker Error: Received error while querying lwsmd. [code 0x00000002]

Tabla de contenidos

En esta ocasión vamos a ver como solve el error » Error: Received error while querying lwsmd. [code 0x00000002] » que nos muestra al intentar añadir un servidor a nuestro controlador de dominio

Simplemente, tenemos que crear el fichero de configuración del servicio con los siguientes parámetros:

config
cat /lib/systemd/system/lwsmd.service
[Unit]

Description=BeyondTrust PBIS Service Manager

After=network.target
[Service]

Type=forking

EnvironmentFile=/opt/pbis/libexec/init-base.sh

ExecStart=/opt/pbis/sbin/lwsmd –start-as-daemon

ExecReload=/opt/pbis/bin/lwsm refresh

ExecStop=/opt/pbis/bin/lwsm shutdown

# We want systemd to give lwsmd some time to finish gracefully, but still want

# it to kill lwsmd after TimeoutStopSec if something went wrong during the

# graceful stop. Normally, Systemd sends SIGTERM signal right after the

# ExecStop, which would kill lwsmd. We are sending useless SIGCONT here to give

# lwsmd time to finish.

KillSignal=SIGCONT

PrivateTmp=true
[Install]

WantedBy=multi-user.target nss-lookup.target

Creamos un enlace

text
cd /etc/systemd/system

ln -s /lib/systemd/system/lwsmd.service

Por ultimo iniciamos el servicio y lo habilitamos.

bash
service lwsmd start

systemctl enable lwsmd.service

Comentarios