October 29, 20241 yr I put some code to disable ctrl alt del on config/go file # Disable ctrl-alt-del on Unraid host sed -i 's/ca::ctrlaltdel/# ca::ctrlaltdel/' /etc/inittab /sbin/telinit q /sbin/init q After reboot, I open terminal and verify the file, I already see "/etc/inittab got comment out # the line" However, CTRL ALT DEL still reboot unraid UI , I tried both telinit q, init q and both of them, but no use. Am I do something wrong? I want to disable the CTRL ALT DEL. ( And please dont tell me pass USB Input to VM. I just want to disable the CTRL ALT DEL ) Edited October 29, 20241 yr by khoaofgod
October 29, 20241 yr Community Expert Unraid is slackware linux. This is a intreing inquiry To disable the CTRL+ALT+DEL key sequence that reboots Unraid, modifying /etc/inittab might not be sufficient because the action is often handled by the kernel or init system directly, especially on Unraid. Here are some additional things to try: *Nontested... as this is a kerneal thing... Override with CMD: ince Unraid is based on Slackware and uses the traditional System V-style init system (/etc/rc.d scripts), here are a few additional suggestions to try to disable CTRL+ALT+DEL: Edit /etc/rc.d/rc.local_shutdown: You could add a command to disable the key sequence before shutdown: hmmm.... nano /etc/rc.d/rc.local_shutdown: echo '0' > /proc/sys/kernel/ctrl-alt-del Modify /etc/inittab and /etc/rc.d/rc.local: Ensure /etc/inittab has the ca::ctrlaltdel line commented out. Use /etc/rc.d/rc.local to reapply the change after boot. waitn Unraid is mutable that wont surive a reboot... ... hmm kenral option... ? append ... ctrl-alt-del=0 Main > Flash > add system linux options... This should work - untested as i want that feature.. kernel /bzimage append initrd=/bzroot ctrl-alt-del=0
October 29, 20241 yr Author thanks bro, I did everything you said, also the append kernel, and verified the /etc/inittab already have # to comment out the ca ctrl alt del combo, but reboot is fine also, but it just not work.... sad
October 30, 20241 yr Community Expert Warrning this is untested, but a potentail fix... As i don't like messign withthe go file.. this can brick the boot process. recovery is to plug the flash drive in and delete the contents of the go file... so here is somethign else you can try: ok with kerneal option set we can try persit at reboots with the go file cd /boot/config nano go # Disable CTRL-ALT-DEL sed -i 's/ca::ctrlaltdel/# ca::ctrlaltdel/' /etc/inittab telinit q we can also try a udev rule: # Create a udev rule to disable CTRL-ALT-DEL echo 'SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ctrlaltdel", RUN+="/bin/true"' > /etc/udev/rules.d/99-disable-ctrl-alt-del.rules # Reload udev rules udevadm control --reload-rules
October 30, 20241 yr Author Basically, with go File, after each reboot, we successful comment out the ca::ctrlaltdel already. Also, the udev file created successful after each reboot. but after login into Unraid UI, CTRL ALT DEL still working and reboot the UI... Grugurgurgu I give up then
October 30, 20241 yr Community Expert the last thing i have that may be needed... as you have the kerneal options, udev and aditional inittab... last thing you can try is a user script plugin at frist array start: #!/bin/bash # Disable CTRL-ALT-DEL in /etc/inittab if grep -q '^ca::ctrlaltdel' /etc/inittab; then echo "Disabling CTRL-ALT-DEL in /etc/inittab..." sed -i 's/^ca::ctrlaltdel/# ca::ctrlaltdel/' /etc/inittab telinit q else echo "CTRL-ALT-DEL is already disabled in /etc/inittab." fi # Disable kernel-level handling of CTRL-ALT-DEL echo "Disabling kernel-level CTRL-ALT-DEL handling..." echo 0 > /proc/sys/kernel/ctrl-alt-del # Confirm the settings have been applied echo "Current /etc/inittab entry for CTRL-ALT-DEL:" grep 'ctrlaltdel' /etc/inittab echo "Kernel-level CTRL-ALT-DEL setting:" cat /proc/sys/kernel/ctrl-alt-del echo "CTRL-ALT-DEL has been disabled."
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.