LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



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

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
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:
Code:
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?

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

Last edited by PTrenholme; 05-25-2010 at 06:42 PM.
 
Old 05-28-2010, 11:44 AM   #2
alli_yas
Member
 
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...
 
  


Reply


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


All times are GMT -5. The time now is 04:52 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration