Oh, the etc profile is called and executed as the user who logged in! I put a 'id' in a bash script and called it using an 'at -f' in my etc profile to confirm this. Calling a fancy bash script to do your bidding through an 'at -f' in etc profile will do the trick.
> On Fri, 2005-02-11 at 05:51 +0000, Anshul wrote: > > > But this seriously begs the question WHY? > > This is a perfectly valid requirement in certain kiosk mode operations. > > cheers, > -indra > Well, thats an idea! (Still, dont log the user out. He might lose work. Just tell him, his hour is up.) Anshul On Fri, 11 Feb 2005 09:04:11 -0500, Siddhartha Basu <[EMAIL PROTECTED]> wrote: > On Fri, 11 Feb 2005 05:51:21 +0000, Anshul <[EMAIL PROTECTED]> wrote: > > Anyhow, a "at" command in /etc/profile should do! > I went through the man of at command. The /etc/profile could possibily > fire of some system wide 'at' command which in turn could run at > specified time. But how do you co-ordinate that 'at' command so that > it forces a particular user to logout of the system after exactly one > hour of his/her login. > Could you help me out. > > -siddhartha > > > > > > But this seriously begs the question WHY? Why oh why would you want > > to do such an evil thing? If you did that to me I did hate you! lol! > > Cant imagine something suddenly closing those million tabs and > > terminals without so much of a warning! > > > > Anshul > > > > On Fri, 11 Feb 2005 22:38:17 +0530, linuxprosun > > <[EMAIL PROTECTED]> wrote: > > > Hello all, > > > > > > How can I protect to not use linux more than a fixed amount of time, each > > > time (s)he used opened it. I mean to say automatic logout after 1 hour. > > > > > > bye > > > prosun > > > > > > -- > > > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > > > > > -- > > > To unsubscribe, send mail to [EMAIL PROTECTED] with the body > > > "unsubscribe ilug-cal" and an empty subject line. > > > FAQ: http://www.ilug-cal.org/node.php?id=3 > > > > > > > -- > > I'm too lazy to compose a creative sig, so i stole someone else's. > > > > -- > > To unsubscribe, send mail to [EMAIL PROTECTED] with the body > > "unsubscribe ilug-cal" and an empty subject line. > > FAQ: http://www.ilug-cal.org/node.php?id=3 > > > > -- > To unsubscribe, send mail to [EMAIL PROTECTED] with the body > "unsubscribe ilug-cal" and an empty subject line. > FAQ: http://www.ilug-cal.org/node.php?id=3 > -- I'm too lazy to compose a creative sig, so i stole someone else's. -- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3
