Re: RE: (no subject)

[email protected] Wed, 03 Jan 2007 13:53:24 -0500
Newsgroups gmane.linux.redhat.release.shrike
Message-ID <[email protected]>
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 
> command an grep for the user if the value is returned then log it 
> to a file or something.  Or run a script in their .login or 
> .profile that dumps to a .log file.  Make sure that the permissions 
> are set correct or they may wonder what the write error is all about.
> 
> -----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)
> 
> 
> Hi All,
> Is there a way to automatically execute a command when a user logs 
> on to a linux?.
> 
> Rgds.
> 
> Harry.
> 
> 

-- 
Shrike-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/shrike-list