RedBar0n wrote on 2003-07-17:

> Hi List,
>
> I'm trying to monitor my user, I'm testing "screen".
>
> I can connect to the same user (if I started screen for user foo and
> then I login in a second session as foo I can connect to the first
> foo session), but this thing can't work if I "su - foo" ( I get an
> error "Cannot open your terminal '/dev/pts/0' - please check" ,
> prs/0 is my current tty), so I changing the permission to "777" on
> this device, but I believe that there is more elegant way to do this
> ( connect to user session as root without "su, chmod 777
> /dev/pst/XXX etc...)
>
> P.S if there is more efficient/secure way to monitor users and help
> them, please advise me :-)
>
Perhaps the `dtach` program can help.  It only handles the connection
of programs to terminals, without any VT emulation, so you'll need to
run from a terminal of the same kind as your user (e.g. both xterms).
It does work for multiple simultaneous connections, last time I
checked.

I don't understand pts permissions but it seems from you description
that you try to connect first, then su, try the other way around.

-- 
Beni Cherniavsky <[EMAIL PROTECTED]>

If I don't hack on it, who will?  And if I don't GPL it, what am I?
And if it itches, why not now?  [With apologies to Hilel ;]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to