I have an script called wow.sh on a shared machine.
'ps -ef | grep wow' shows multiple runs of the same script.
How can I use the tty information to find the offending users ip?
feedback
|
This question came from our site for professional and enthusiast programmers.
|
You can try "last", which will show you last logins. So if you narrowed it down to a user, you can run | |||
|
feedback
|
|
In the most basic sense, you need to track down who ran it and where they logged in from:
The 2nd field gives you the user. If this is obvious (i.e. not 'root' or some shared username) then you can use 'last' as Alex mentions:
Just match up their date from the first command (the 'lstart' last column) with the login/logout reported by last. | |||
feedback
|
|
If the offending party will still be logged in (i.e. they're not | |||
|
feedback
|