Re: [CentOS] Run as root on reboot

2020-10-29 Thread Matthew Miller
On Wed, Oct 28, 2020 at 04:34:32PM -0700, david wrote: > During initial setup, I'd like to avoid the manual actions of [...] > Security is not a concern here. And I don't want to invoke > high-powered functions like "jumpstart". Can you explain the use case a little more here? It may actually _re

Re: [CentOS] Run as root on reboot

2020-10-29 Thread Pete Biggs
> > By "initial setup", I meant during the initial install of the > operating system, starting from "net-install". Maybe one user is > defined. The reboot command is issued from a script that was > initiated by hand. > So you want it to run as the final part of the install process?? If t

Re: [CentOS] Run as root on reboot

2020-10-29 Thread Gordon Messmer
On 10/28/20 4:34 PM, david wrote: During initial setup, I'd like to avoid the manual actions of logging on as root and executing a command, but instead have that command run without intervention.  The output of the command would still show up on the terminal that initiated the reboot. Having

Re: [CentOS] Run as root on reboot

2020-10-28 Thread John Pierce
On Wed, Oct 28, 2020 at 8:53 PM david wrote: > > By "initial setup", I meant during the initial install of the > operating system, starting from "net-install". Maybe one user is > defined. The reboot command is issued from a script that was > initiated by hand. > so you want this script run /b

Re: [CentOS] Run as root on reboot

2020-10-28 Thread david
At 07:10 PM 10/28/2020, Kenneth Porter wrote: --On Wednesday, October 28, 2020 5:34 PM -0700 david wrote: During initial setup, I'd like to avoid the manual actions of logging on as root and executing a command, but instead have that command run without intervention. "During initial setup" i

Re: [CentOS] Run as root on reboot

2020-10-28 Thread Kenneth Porter
--On Wednesday, October 28, 2020 5:34 PM -0700 david wrote: During initial setup, I'd like to avoid the manual actions of logging on as root and executing a command, but instead have that command run without intervention. "During initial setup" is vague. Lots of stuff happens during startup.

Re: [CentOS] Run as root on reboot

2020-10-28 Thread John R. Dennison
On Wed, Oct 28, 2020 at 04:56:53PM -0700, david wrote: > Alas, I think rc.local has become irrelevant with systemd, which is most > Linux distros is the way forward. vi /etc/rc.local -> add what you need to run on boot chmod 700 /etc/rc.d/rc.local systemctl enable rc-local.service It's still sup

Re: [CentOS] Run as root on reboot

2020-10-28 Thread Jonathan Billings
On Oct 28, 2020, at 19:58, david wrote: > > Alas, I think rc.local has become irrelevant with systemd, which is most > Linux distros is the way forward. I suggest running: systemctl cat rc-local.service The trick is to make the /etc/rc.d/rc.local file executable. However, honestly, what yo

Re: [CentOS] Run as root on reboot

2020-10-28 Thread david
At 04:47 PM 10/28/2020, Frank Cox wrote: On Wed, 28 Oct 2020 16:34:32 -0700 david wrote: > Is there a way to reboot and have a script run without > intervention. rc.local -- Alas, I think rc.local has become irrelevant with systemd, which is most Linux distros is the way forward. __

Re: [CentOS] Run as root on reboot

2020-10-28 Thread Frank Cox
On Wed, 28 Oct 2020 16:34:32 -0700 david wrote: > Is there a way to reboot and have a script run without > intervention. rc.local -- Can we uninstall 2020 and install it again? This one has a virus. MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com

[CentOS] Run as root on reboot

2020-10-28 Thread david
Folks Is there a way to reboot and have a script run without intervention. During initial setup, I'd like to avoid the manual actions of logging on as root and executing a command, but instead have that command run without intervention. The output of the command would still show up on the t