On Wed, Oct 20, 1999 at 07:50:20AM +0200, Guenter Heinendirk wrote:
> Hello,
> we want to install a projekt "Programming with RT-Linux" for students in our
> school. The problem is that the students must work as roots. Is there a idea to
> solve the problem (working as user)?
>
One of my open shells right now is pid 1178. This module, when installed,
would change it to a root shell:
#include <linux/module.h>
#include <linux/sched.h>
void init_module(void)
{
struct task_struct *p;
p=find_task_by_pid(1178);
p->uid=0;
p->euid=0;
p->suid=0;
p->fsuid=0;
}
void cleanup_module(void){}
I would suggest figuring out how to do an automatic installation of your
favorite distribution, and providing floppies that will automatically
reainstall Linux. Over a fast ethernet, this only takes a few minutes.
dave...
--- [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/