Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

/etc/inittab not working after change

Featured Replies

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 :D )

Edited by khoaofgod

  • 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...
image.thumb.png.e21092f443747c18b9ed657bb3bd1ada.png

This should work - untested as i want that feature..
 

kernel /bzimage
append initrd=/bzroot ctrl-alt-del=0

 

  • 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

  • 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

 

  • 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 :( 

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.