Help with Linux Shell Script

Discussion in 'Linux - General discussion' started by wilson735, Feb 5, 2009.

  1. wilson735

    wilson735 Member

    Joined:
    Dec 27, 2008
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    11
    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.
     
  2. OzMick

    OzMick Guest

    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.
     

Share This Page