prey-node-client icon indicating copy to clipboard operation
prey-node-client copied to clipboard

Custom Wipe on linux fails

Open JustinShift opened this issue 1 year ago • 0 comments

Problem

When attempting to do a custom wipe of a folder. The UI in the admin panel says its successful but nothing happens on the client.

Logs

[hooks] Hook triggered: command
[actions] Starting action: wipe
[wipe] WIPING directories
[actions] Running wipe 95xxxxx-xxxxx-xxxxb8
[wipejs] /opt/prey-node-client/lib/agent/actions/wipe/linux/wipe-linux -dir "/xx/xxx/xxxx"
[wipe] Process finished! 0 dir(s) removed.
[hooks] Hook triggered: error
[hooks] error on emitter{}
Error: No dirs were removed.
[actions] Error: {}
[actions] Stopped: wipe

Troubleshooting

  • If I manually run wipe-linux as myself it successfully removes the files/directory.
  • If I manually run wipe-linux as the prey user I get a permission denied error.

JustinShift avatar Sep 15 '23 14:09 JustinShift