LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Change in /usr/sbin/akmodsbuild kills akmod (http://www.linuxquestions.org/questions/fedora-35/change-in-usr-sbin-akmodsbuild-kills-akmod-810093/)

PTrenholme 05-25-2010 05:39 PM

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? :scratch:

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

alli_yas 05-28-2010 10:44 AM

Very interesting issue:confused:

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


All times are GMT -5. The time now is 07:36 PM.