I'm interested in writing a (hopefully) simple Linux Shell Script. Upon shutdown of the system (or upon reboot), I would like the script to automatically reset any changes made during that session. This includes files saved to the hard disk as well as any configuration changes. I would also like the script to be run only with guest accounts, the administrative account would not have the script run. Can anyone help me out? I'm not even sure where to start.
Ubuntu has this built in as of 8.10, you can use the user switcher to fire up a disposable guest account. I don't think it is entirely simple, but you'd be able to look at the source code that the Ubuntu method runs on. You'd be on your own, nobody here would know where to look for that code.