First of all, in no way I want to use this to hack / cheat / steal etc ...
I am an admin of a couple of hundred users which are 99,8% > 500miles away from me and to facilitate some administration part I would like to be able to "spy" what they are doing in there sessions, live.
ex:
Can I "spy" 'RandomUserOne' on pts/1?
Google was useless btw ... I might just not be using the right terms ...
There have been programs in the past like ttysnoop... and I've used them (at the request of clients). They basically replace login. But with Solaris changes, not sure if any of that is applicable anymore.
You can use screen utility, It's available on sunfreeware.
User has to run:
then you have to switch to that user and run:
This way you can see everything that happens on his/her terminal. It's not very secure as you have to temporarily chmod on /dev/pts/X but it does the job.
In bash, you can do something like this:
#!/bin/bash
echo -n "What is your name? " > /dev/tty
read thename < /dev/tty
How can I do the same in python?
I have a python script that has the following content:
#!/usr/bin/python2.7
import getpass
import sys
import telnetlib
import... (2 Replies)
I have a master host I want to use to issue some start/stop of LDAP services.
I changed the client hosts /etc/sudoers to have
Defaults:infra !requiretty
The master host kicks off the jobs using the infra account doing a ssh session to the infra account on the clients.
#!/bin/ksh
ps -fu... (5 Replies)
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Im trying to get my program to behave in this way:
prog 1 | ./pipespy myfile.dat | prog2
the standard output of prog1 is supplied as the input to prog2 and copied into file myfile.dat.
need help (11 Replies)
I'm just after finding a file resding in my temporary directory(/tmp) on my machine called 'i-spy'
This file is owned by root and ordinary muppets like me cant delete it, open or even do a more or cat on it. I'm running Solaris 2.6 on a Sun Ultra 5.
Can anyone out there give me a good... (1 Reply)