LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2021, 10:22 AM   #1
Mike Davies
Member
 
Registered: Jul 2004
Distribution: Custom Linux, Buildroot, Busybox, Fedora, Raspberry Pi
Posts: 144

Rep: Reputation: 15
systemd failing "Operation not permitted"


Recently did an fresh install Fedora 34, and I'm trying to get the system working like it used to previously, but I have a problem with a systemd service.

I need to load a kernel module before starting a service.

Previously, the .service file simply had an extra line...

ExecStartPre=/sbin/modprobe ...

Now it fails with "operation not permitted".

It is all a bit annoying, because I can type in the command and start the service manually, but I'd rather have it running from the initial boot.

What is the secret ? I was under the impression that systemd ran as root and it could do anything.

Any help appreciated.
 
Old 06-24-2021, 12:35 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
To run an ExecStartPre command with full privileges. add "+"

Code:
ExecStartPre=+/sbin/modprobe ...
See: https://www.freedesktop.org/software...tml#ExecStart=

systemd is a great answer to a question that nobody asked.
 
Old 06-24-2021, 12:42 PM   #3
Mike Davies
Member
 
Registered: Jul 2004
Distribution: Custom Linux, Buildroot, Busybox, Fedora, Raspberry Pi
Posts: 144

Original Poster
Rep: Reputation: 15
Thanks.

That worked perfectly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"sudo rm ..." reports "Operation not permitted" irissun Linux - General 16 10-16-2018 01:00 AM
SIOCSIFFLAGS: Operation not permitted SIOCSIFFLAGS: Operation not permitted sushan1982 Linux - Wireless Networking 1 01-01-2012 08:04 PM
"creating symbolic link" "operation not permitted" wheni Linux - Newbie 3 05-08-2011 01:36 AM
Logged in as "root"/Fedora 8 but get "Operation not permitted" when using "chmod etc gosunlee Linux - Newbie 7 02-10-2008 05:56 AM
"Preserving time: operation not permitted" on fat32 on debian ac1980 Debian 10 01-15-2007 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration