I know this is a very unusual question but i had to create a bash script for a school project and I created a systemd service which calls a script on startup. Script contained (i think, cant check cause perma wall command) :

until/while (ls /dev/pts/ | wc -l != 0) ## not sure if i added the != 0
   wall -n "this is a broadcast"

Is there a way to disable this script/wall command?

os is centOS stream 9 minimal installation (no gui) running in VirtualBox on MacOS

  • mount the virtualbox disk image on your host pc and remove or edit the systemd unit file. Feb 25, 2022 at 22:25
  • @mashuptwice is this (including installing necessary commands to mount .vdi) possible without sudo? It's a school iMac.
    – jmelger
    Feb 25, 2022 at 22:43
  • The reason why I've added this as a comment in contrast to an answer is that I don't work with MacOS and therefore can't give you any qualified answers to MacOS. In case it doesn't work, you could spin up another linux VM and mount the image in there. Feb 25, 2022 at 22:48
  • Thank you so much, will check it out tomorrow!
    – jmelger
    Feb 25, 2022 at 22:58
  • @GamingTurtle Since this is a VM, you could also try booting into rescue.target (freedesktop.org/software/systemd/man/…). You should then be able to troubleshoot from inside the VM, and not do anything on the host.
    – Haxiel
    Feb 26, 2022 at 3:27

1 Answer 1


Fixed by adding the Virtual Disk Image as SATA device to a second linux VM, mounting it and commenting out the script.

Thanks everyone.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .