How to record operations from putty?

How to record operations from putty?

Where can i set to record user's operations from putty or securecrt tools?And how can i limit users to run some special commands such as "passwd" "rm"?

                  New to ADSelfService Plus?