port fwd as user not root?
From: Mathias Koerber (mathias@koerber.org)Date: 05/24/02
- Next message: Kenneth R. Robinette: "Re: OpenSSH client C/C++ library for win32"
- Previous message: Shing-Fat Fred Ma: "sftp speed degradation with ZA?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Mathias Koerber <mathias@koerber.org> Date: Fri, 24 May 2002 10:30:31 +0800
When using OpenSSH 3.0 as server (and SecureCRT as client), I find
that the port-forwards (local) I make to my server are opened on the
server by the sshd which at that point is still root.
As an example, I define
LOCAL:12345 otherhost:25
On the server system, I see the following processes:
root 125 S May05 10:12 /usr/local/sbin/sshd
root 21288 S 10:01 0:04 \_ /usr/local/sbin/sshd
mathias 21289 SW 10:01 0:00 \_ [bash]
mathias 21297 S 10:01 0:00 \_ ssh-agent /usr/bin/bash
netstat shows the connection:
tcp 0 0 myserver:47552 otherhost:25 ESTABLISHED
lsof shows the owner of the port to be root:
$ lsof -i TCP:47552
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sshd 21288 root 9u inet 627601 TCP
myserver:47552->otherhost:smtp (ESTABLISHED)
Is there any way I can make this instance of sshd assume my identity
(mathias) instead of hanging around as root?
The problem I'm facing is that identd reports the owner of the
connection as root, while I would like it to show the userid I
logged in as..
Mathias
- Next message: Kenneth R. Robinette: "Re: OpenSSH client C/C++ library for win32"
- Previous message: Shing-Fat Fred Ma: "sftp speed degradation with ZA?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|