[maemo-developers] [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet

From: Neil Jerram neil at ossau.uklinux.net
Date: Thu Feb 23 09:47:13 EET 2006
"Armin M. Warda" <Armin.Warda at Web.De> writes:

> Andrew Flegg recommends to
>> Open a pty and drive a root-enabled shell through `sudo gainroot'?
>
> Unfortunately, I do not know how to do that. I am not an experienced 
> hacker or C coder, but I try to contribute. Can anybody provide some 
> C code sniplet that demonstrates how I can open a pty and drive a 
> root-enabled shell through sudo gainroot?
>
>> Then users will only have to ensure R&D mode is enabled without any
>> further hacking.
>
> Yes, that would be much better than hacking /etc/sudoers. 
> Everybody who wants to use swap has to enable R&D mode anyway...

In my experience, continued use of R&D mode is a lot less stable than
changing /etc/sudoers and then switching back to normal mode.  My
experience may have been random, but until that's proved I wouldn't
want to keep running in R&D mode all the time.

     Neil



More information about the maemo-developers mailing list