Failed to get D-Bus connection: Opération non permise

0

I'm using a centos 7 OS, I have removed /var/run/dbus/system_bus_socket after i accidently removed the /var/run folder. Now when i'm trying to use systemctl command i'm getting the error mentioned above. Note that i'm connecting to this machine using SSH. So i have two questions:

  1. Is there a way to recover the deleted files and particularly the system_bus_socket?
  2. Does rebooting the machine recover the files. (because i'm afraid that after rebooting, the systemctl won't be able to start the services or i won't be able to connect with SSH)?

Zied Yazidi

Posted 2019-05-21T09:23:41.870

Reputation: 1

Answers

0

The folder /var/run is recreated after each reboot. After reboot, the files are recovered.

Zied Yazidi

Posted 2019-05-21T09:23:41.870

Reputation: 1