El viernes, 20 de julio de 2007 16:03 +0200, Eric MSP Veith <[EMAIL PROTECTED]> escribió: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I'm currently trying to extend the syslog plugin (setting log > facility, storing logs in memory while syslog is not available, > trying to automatically set the priority level). While looking for > the fake mode, I discovered that InitNG, when started as regular user > (UID != 0), completely tries to reboot the system. A lot of services > fail (of course), but the effect is desastreous: login sessions > terminate, daemons get killed, data is propably lost (on some NFS or > CIFS mounts), and so on. > > I filed a bug for this under http://www.initng.org/ticket/780. I'd > like someone to review it, because I could as well get something > wrong. However, I believe, that simply running /sbin/initng as a > normal user should not have *any* effect except the fake mode. > > And, besides that: I've not yet found out how to enter fake mode for > testing my code. :-) Could please anybody explain this to me? > > Eric > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > > iD8DBQFGoMDDfkUtd7QNU/sRArNNAJ9kqOEYfJQ1yCZ9FC0S8cOZIaMVHgCglJNQ > zyGDDB7tSuWzezXE6V6YqTg= > =Vc5T > -----END PGP SIGNATURE-----
If it's run as a normal user it shouldn't be able to do anything with the running services... This needs a bit of discussion, I was planning to change the way this works. IMO, it should start in fake-mode unless uid=0, and if it's started in fake-mode, it should search for the scripts in $HOME/initng or something similar. I also want to make possible to have multiple versions of initng installed, that makes the upgrading process safe :).
signature.asc
Description: PGP signature
-- _______________________________________________ Initng mailing list [email protected] http://jw.dyndns.org/mailman/listinfo/initng
