W
W
WhiteColor752021-11-28 11:31:52
linux
WhiteColor75, 2021-11-28 11:31:52

How to add bash to autoload as root?

The following is written in a file called main.sh :
modprobe -r uvcvideo
It does not run from the console, it displays operation permitted
How can I make it run at system startup, given that the script itself is only run on behalf of root? The password should not be requested!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Volkov, 2021-11-28
@WhiteColor75

Should you block the module? Read about blacklist in modprobe.d .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question