Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 05-25-2010, 05:39 PM   #1
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Question Change in /usr/sbin/akmodsbuild kills akmod

The script, /usr/bin/akmodsbuild was changed at some time to forbid running the script as "root." This change, if course, prevents akmod from automatically generating new kernel modules when run during boot after the kernel is changed.

It's simple to fix. Just log in at init level 3, run nano /usr/bin/akmodsbuild and comment out the (rather misguided) check at the start of the init function. The corrected script should look like this:
init ()
        ## startup checks
        # prevent root-usage
#       if [[ -w / ]]; then
#               echo "ERROR: Not to be used as root; start as user or '${myprog}' instead." >&2
#               exit 1 
#       fi
Does anyone know what the developers were thinking when they added a check to prevent a system that requires root privileges to install kernel modules from running with root access?

Oops: Title says /usr/sbin, not /usr/bin, as the location, and I don't know how to edit a title line.

Last edited by PTrenholme; 05-25-2010 at 05:42 PM.
Old 05-28-2010, 10:44 AM   #2
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Very interesting issue

Maybe submit your post on the Redhat/Fedora Bugzilla? Its perhaps a bug in 13 maybe...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_x dasoberdick Slackware 16 10-11-2014 02:36 AM
What is difference between /usr/sbin/ps & /usr/ucb/ps command rajaniyer123 Solaris / OpenSolaris 6 07-05-2007 12:53 PM
How do you change what the /usr/sbin/service program runs? launchcode Red Hat 3 07-16-2004 01:18 PM
/usr/sbin and /sbin world read/executable... why? lazlow69 Slackware 3 04-29-2004 05:06 PM
As root, not seeing /sbin and /usr/sbin in path weghman Linux - Newbie 3 04-25-2004 01:06 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:54 PM.

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