Hi Kartik, Its easy man : following can be a good solution : -> make a script which will only execute if the current logged in user is guest and will clear the directories or whatever u want. then put its entry in /etc/bashrc, you need to make sure that script is executable by guest user or you can apply SUID on it
in case if you want i can prepare one for you. On Sun, Aug 1, 2010 at 4:08 PM, Kartik Singhal <kartiksing...@gmail.com>wrote: > > > On Mon, Jul 26, 2010 at 10:05 AM, jeet7668 . <jeet7...@sify.com> wrote: > >> Well I think the following can help you out. >> >> 1) for having a guest account simply create a account with any name >> (probably guest) that will never ask for password at login so you don't have >> to tell the password to everyone (if u want that account to be for public >> use) >> > > We have done the same as I have mentioned in my first post. > > 2) for resetting home directories of users, you should put all your files >> (which u want to be there in the home directory at every login) at some >> different place and write a small bash/perl script to place them in user's >> home directory at every login after deleting whatever was there in user's >> home directory. >> > > Exactly what we want to do but how? How to execute that script > automatically at login. > > -- > Kartik Singhal > BTech CSE Student, NIT Calicut > http://www.techglider.com > -- Satyajeet Singh (Martin) (Linux Corporate Trainer) Koenig-Solutions Pvt Ltd 09911547664 _______________________________________________ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd