RE: RE: (no subject)
"Gildersleeve, Mike" <[email protected]> Wed, 3 Jan 2007 14:35:24 -0500
| Newsgroups | gmane.linux.redhat.release.shrike |
|---|---|
| Message-ID | <[email protected]> |
Sounds good to me. -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of [email protected] Sent: Wednesday, January 03, 2007 1:53 PM To: Discussion of Red Hat Linux 9 (Shrike) Subject: Re: RE: (no subject) Why not add the command at the end of /etc/profile It'll be executed whenever anyone logs onto the linux box. That way users won't be able to circumvent the command by editing their .profile Nabeel ----- Original Message ----- From: "Gildersleeve, Mike" <[email protected]> Date: Wednesday, January 3, 2007 8:39 am Subject: RE: (no subject) To: "Discussion of Red Hat Linux 9 (Shrike)" <[email protected]> > Try a cron job, every 5 min, that runs a script that runs the who=20 > command an grep for the user if the value is returned then log it=20 > to a file or something. Or run a script in their .login or=20 > .profile that dumps to a .log file. Make sure that the permissions=20 > are set correct or they may wonder what the write error is all about. >=20 > -----Original Message----- > From: [email protected] [mailto:shrike-list- > [email protected]]On Behalf Of Harry, Hambi > Sent: Wednesday, January 03, 2007 7:25 AM > To: [email protected] > Subject: (no subject) >=20 >=20 > Hi All, > Is there a way to automatically execute a command when a user logs=20 > on to a linux?. >=20 > Rgds. >=20 > Harry. >=20 >=20 --=20 Shrike-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/shrike-list --=20 Shrike-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/shrike-list