how can obtain other user commands on the same server.

hi buddies,
i want to learn something,so that we have several users on a sun server and via telnet, we are connecting to server same username and password root/something as root
and after connection i want to see what other roots or users are doing on the server, i want to see their command. Actually, w command a little bit useful but like history i want to see all command of them, i checked out ~/.sh_history file, i tried to use and i could not get a result. Is there any easy way for taking other user commands from system which is v240 that has sol 10 OS.

Best Regards from Icadiye;)
Musa Rami

you can use "last" command. man last for more info

use dtrace....

execsnoop an/or opensnoop should do the job!