View previous topic :: View next topic |
Author |
Message |
nielchiano Veteran

Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Thu May 18, 2006 11:15 am Post subject: letting an other user watch your tty [solved] |
|
|
Hi,
I'm currently trying to teach a fairly new user on how to use linux (server management, so console only). We can both log in to the server (I can be root, if needed).
Is it possible to let him watch me doing things? Preferable his part would be read-only.
And, to be realy picky: I'd like to run screen in it, so it should have support for that 
Last edited by nielchiano on Thu May 18, 2006 11:40 am; edited 1 time in total |
|
Back to top |
|
 |
bin-doph Guru


Joined: 23 May 2003 Posts: 302
|
Posted: Thu May 18, 2006 11:25 am Post subject: |
|
|
aye thats possible. Install app-misc/screen, create a session and let the other user watch you.
from man screen wrote: | -x Attach to a not detached screen session. (Multi display mode).
|
hth
-fe _________________ perl -e '$_=q;4a75737420616e6f74686572205065726c204861636b65720as;;for(s;s;s;s;s;s;s;s;s;s;s;s){s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}' |
|
Back to top |
|
 |
nielchiano Veteran

Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Thu May 18, 2006 11:28 am Post subject: |
|
|
bin-doph wrote: | aye thats possible. Install app-misc/screen, create a session and let the other user watch you.
from man screen wrote: | -x Attach to a not detached screen session. (Multi display mode).
|
hth
-fe |
I suppose that would be read-write, and we both have to be the same user? |
|
Back to top |
|
 |
htranou Tux's lil' helper

Joined: 08 May 2006 Posts: 96
|
|
Back to top |
|
 |
bin-doph Guru


Joined: 23 May 2003 Posts: 302
|
Posted: Thu May 18, 2006 11:39 am Post subject: |
|
|
nielchiano wrote: | bin-doph wrote: | aye thats possible. Install app-misc/screen, create a session and let the other user watch you.
from man screen wrote: | -x Attach to a not detached screen session. (Multi display mode).
|
hth
-fe |
I suppose that would be read-write, and we both have to be the same user? |
I gave you the hint. Read the manual, screen also has configuration-options for ACL's
man screen wrote: | CUSTOMIZATION
The "socket directory" defaults either to $HOME/.screen or simply to /tmp/screens or preferably to /var/run/screen chosen at compile-
time. If screen is installed setuid-root, then the administrator should compile screen with an adequate (not NFS mounted) socket direc-
tory. If screen is not running setuid-root, the user can specify any mode 700 directory in the environment variable $SCREENDIR.
[snip]
acladd usernames [crypted-pw]
addacl usernames
Enable users to fully access this screen session. Usernames can be one user or a comma separated list of users. This command enables to
attach to the screen session and performs the equivalent of `aclchg usernames +rwx "#?"'. executed. To add a user with restricted
access, use the `aclchg' command below. If an optional second parameter is supplied, it should be a crypted password for the named
user(s). `Addacl' is a synonym to `acladd'. Multi user mode only.
aclchg usernames permbits list
chacl usernames permbits list
Change permissions for a comma separated list of users. Permission bits are represented as `r', `w' and `x'. Prefixing `+' grants the
permission, `-' removes it. The third parameter is a comma separated list of commands and/or windows (specified either by number or
title). The special list `#' refers to all windows, `?' to all commands. if usernames consists of a single `*', all known users are
affected. A command can be executed when the user has the `x' bit for it. The user can type input to a window when he has its `w' bit
set and no other user obtains a writelock for this window. Other bits are currently ignored. To withdraw the writelock from another
user in window 2: `aclchg username -w+w 2'. To allow read-only access to the session: `aclchg username -w "#"'. As soon as a user's
name is known to screen he can attach to the session and (per default) has full permissions for all command and windows. Execution per-
mission for the acl commands, `at' and others should also be removed or the user may be able to regain write permission. Rights of the
special username nobody cannot be changed (see the "su" command). `Chacl' is a synonym to `aclchg'. Multi user mode only.
...
|
I'm not familiar with that configuration or have tested it myself, but refering to the manpage it has those features. I dont know any other tool which provides those functionallity.
hth
-fe _________________ perl -e '$_=q;4a75737420616e6f74686572205065726c204861636b65720as;;for(s;s;s;s;s;s;s;s;s;s;s;s){s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}' |
|
Back to top |
|
 |
nielchiano Veteran

Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Thu May 18, 2006 11:40 am Post subject: |
|
|
ok, thanks a lot! |
|
Back to top |
|
 |
|