File: README

package info (click to toggle)
sdm 0.4.0a-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 188 kB
  • ctags: 4
  • sloc: sh: 68; makefile: 66
file content (53 lines) | stat: -rw-r--r-- 1,963 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
this is a Secure Display Manager.

essentially, sdm runs Xdialog on the X-terminal, and connects
to a server via ssh.  it can also do automatic passwordless
logins with ssh keys.

Copyright 2003 under the terms of the GNU General Public
License, version 2 or any later version. vagrant@freegeek.org

a basic overview:

sdm has two main packages (and the doc package).

the first package, sdm, is installed on a server.  it contains
the sdm-session script, which is called remotely by the
sdm-login script.

it's essential to have /etc/ssh/sshd_config configured with:

X11Forwarding yes

the second package, sdm-terminal, is installed on the
"terminal" or in the chrooted directory of the terminal(if
terminals are "diskless" terminals).  it contains
/usr/sbin/sdm, which should be run from the terminal's
/etc/inittab, like so:

sdm5:5:respawn:/usr/sbin/sdm

this would cause sdm to run (and respawn when it dies) when
entering runlevel 5.

sdm calls another script, /usr/sbin/sdm-login.  this script 
gathers information about the user login, password or key, 
server to login to, etc.  some of this information may come 
from /etc/sdm/sdm.config or /etc/sdm/sdm.config.$hostname, or 
the getLoginInfo script, which usually uses Xdialog.

sdm-login the attempts to ssh to the server with X11Forwarding 
enabled, running the sdm-session program, which will source 
/etc/X11/Xsession.

also note that on the terminal, there must be a valid key in
/root/.ssh/known_hosts for any servers you wish to log into,
otherwise sdm will hang asking if you want to connect.

sdm-ssh-askpass is a re-write of ssh-askpass using
Xdialog. if the SSH_ASKPASS variable is set, ssh tries to get
any passwords using this program (unless run from a
terminal...) having sdm-ssh-askpass means we don't need to
depend on any of the other ssh-askpass programs, and is
graphically consistant with the login screen.  it's also
possible to have a totally graphical login using SSH_ASKPASS.