On Thu, 11 Nov 2010 23:44:10 -0800 (PST), Amit Sharma <amit_...@yahoo.com> wrote: > Hi, > > I want to run a script as soon as a non-root users logs in. > > For that if I make a entry in /etc/proile then it runs for root also. > > I also tried it in /etc/bashrc but still it runs for root user as well.
Maybe you can do "whoami" in the script itself and see if it's root then exit, otherwise proceed further. Regards Vivek Kapoor http://exain.com _______________________________________________ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd