Package: ajaxterm
Version: 0.10-4.1etch1
Severity: normal

I'd like to use ajaxterm to show a access a serial console though a web server. 
I've setup ajaxterm to run a 'screen' command on the serial device (/dev/ttyS1) 
but it doesn't work, I get a 'permission denied' in the console shown by 
ajaxterm.
The access permission of the device file is :
$ ls -l /dev/ttyS1
crw-rw---- 1 root dialout 4, 65 2009-05-11 08:44 /dev/ttyS1

so i tried to add ajaterm to dialout group, but it doesn't work ; it seems that 
the command run by ajaxterm is own by the ajaxterm's user, but with 'root' 
group: if I add a 'id' command before 'screen' in script run by ajaxterm, I get 
:

uid=112(ajaxterm) gid=0(root) groups=0(root)
and /dev/ttyS1 isn't readeable.

but if I test to become 'ajaxterm' user from root, I get :
# su -s /bin/bash -c /usr/bin/id ajaxterm
uid=112(ajaxterm) gid=113(ajaxterm) groupes=20(dialout),113(ajaxterm)


How could I resolve my problem ?

  Fred.

-- System Information:
Debian Release: 4.0
  APT prefers oldstable
  APT policy: (500, 'oldstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages ajaxterm depends on:
ii  adduser                       3.102      Add and remove users and groups
ii  python                        2.4.4-2    An interactive high-level object-o
ii  python-support                0.5.6      automated rebuilding support for p

Versions of packages ajaxterm recommends:
ii  apache2-mpm-prefork [http 2.2.3-4+etch6  Traditional model for Apache HTTPD
ii  openssh-server            1:4.3p2-9etch3 Secure shell server, an rshd repla
ii  python-psyco              1.5.1-3        python specializing compiler

-- no debconf information




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to