Hi Luggers !
Is there any way to find out which files (scripts) and commands are executed after the user enters her password and before a user is presented with a Shell prompt?
I also want to monitor similar things while the user logs out, i.e. , after the user enters exit and before another a login prompt appears.
TIA,
Warm Regards, $ sonpal -kj
Sometime on Sep 7, Kinjal Sonpal assembled some asciibets to say:
Is there any way to find out which files (scripts) and commands are executed after the user enters her password and before a user is
~/.bash_login and ~/.bashrc
Everything in here is executed when someone logs in. This in turn may execute /etc/login and other stuff.
I also want to monitor similar things while the user logs out, i.e. , after the user enters exit and before another a login prompt
~/.bash_logout
Philip
Philip S Tellis wrote on Saturday, September 08, 2001
~/.bash_login and ~/.bashrc
Everything in here is executed when someone logs in. This in
turn may
execute /etc/login and other stuff.
I also want to monitor similar things while the user logs
out, i.e.
, after the user enters exit and before another a login
prompt
~/.bash_logout
Thanks for the info. This is specific to the BASH shell. Is it possible to get this info independant of any shell?
Warm Regards, $ sonpal -kj
--- Kinjal Sonpal kinjalsonpal@softhome.net wrote:
Is there any way to find out which files (scripts) and commands are executed after the user enters her password and before a user is presented with a Shell prompt?
[snip] # if [ this suits=u] # then
man ps... bash# ps eaxf | less
# else # echo" try this..." man lsof # fi
Trevor Warren
I also want to monitor similar things while the user logs out, i.e. , after the user enters exit and before another a login prompt appears.
TIA,
Warm Regards, $ sonpal -kj
Next Online IRC LUG Meet on 31st Aug @ 4:30pm http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
===== +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ( >- Trevor W - GNU/LINUX, It's all about CHOICE -< ) /~\ trevor@freeos.com /~\ | ) *** !!! EnJoY !!! *** (/ | |_|_ _|_| Urgent --> Mail on 9820349221@maxtouch.co.in +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
__________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com
.bash_profile / .bashrc - startup .bash_logout - close of a session do 'ls -a' in ur login prompt to find these files.
however these r for bash shell ... and i guess u r using bash shell.
Goldwyn :o)
Kinjal Sonpal> Is there any way to find out which files (scripts) and commands Kinjal Sonpal> are executed after the user enters her password and before a user Kinjal Sonpal> is presented with a Shell prompt? Kinjal Sonpal> Kinjal Sonpal> I also want to monitor similar things while the user logs out, Kinjal Sonpal> i.e. , after the user enters exit and before another a login Kinjal Sonpal> prompt appears.