Hi Ramon,

Only root can insert and remove modules and this is done via insmod and rmmod.
You can give everyone access to insmod and rmmod by typing as root

chmod 4550 /sbin/insmod /sbin/rmmod

They should end up looking like this:

-r-sr-x---   1 root     root        28244 Apr 19 22:46 /sbin/insmod
-r-sr-x---   1 root     root         8392 Apr 19 22:46 /sbin/rmmod

This will now let users in the "root" group to insert and remove modules
in kernel memory.  The 's' flag means that when insmod or rmmod is run,
the owner of the file (root) will be who the binary is effectively run as.

Naturally, there are huge security implications by doing this but given
that you're giving students access to kernel memory, I don't see that 
it matters!


Brendan


> Hi,
> 
> I'm an assistant professor developing a couple
> of real time exercises under RTL. Which users
> can use insmod ?
> 
> Is is necessary to be the root ? (these introduces
> several difficulties to me, because everybody needs
> to know the root's passwd)
> 
> Is there any other possibility ?
> Can members of the root's group use insmod (I didn't
> succeed to do it ?).
> 
> 
> Best Regards,
> 
> Ramon
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to