hi i wish make a shell to look for the number of times a user is connected then makes a "whatch dog" by crontab to handle this
i could do it through ps-fedal| grep user_name | wc-l ... etc.
but others suggested me another algorithm
and thought to use w, or finger, or who
but it have a problem
if I try (as root) open a command interpreter and use
su username
none of the above commands recognize me as the new user where I am, It still recognize as root
how could I fix this? or which other command allows me to see what actions or process a user doing on the machine?
.
by the way im from colombia and im an Unix's (CentOS 5) novice user
thank you very much for your comprention and attention