Re: RE: (no subject)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" <mgilder@xxxxxxxx>
Date: Wednesday, January 3, 2007 8:39 am
Subject: RE: (no subject)
To: "Discussion of Red Hat Linux 9 (Shrike)" <shrike-list@xxxxxxxxxx>

> 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: shrike-list-bounces@xxxxxxxxxx [mailto:shrike-list-
> bounces@xxxxxxxxxx]On Behalf Of Harry, Hambi
> Sent: Wednesday, January 03, 2007 7:25 AM
> To: shrike-list@xxxxxxxxxx
> 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
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux