Re: [Twisted-Python] twisted.conch.ssh.session.SSHSession.request_subsystem

2008-12-22 Thread Tzury Bar Yochay
I managed to hack this by patching the _absPath method as follows: # put in my main file def absPath(self, path): # users is my own object which manages the users in the system profile = users.get(self.avatar.username) if profile: home = self.avatar.getHomeDir() abspat

Re: [Twisted-Python] twisted.conch.ssh.session.SSHSession.request_subsystem

2008-12-22 Thread Tzury Bar Yochay
Glyph, thanks for your attention and time. I am afraid I was not clear wit hmy question so please allow me to elaborate. > The way you control which paths a user can access in this scenario is by > setting the filesystem permissions on those directories. Sorry, but Twisted > cannot magically chan

[Twisted-Python] twisted.conch.ssh.session.SSHSession.request_subsystem

2008-12-22 Thread Tzury Bar Yochay
Hi all, I've managed to come up with a minimal sftp server implementation which able to auth users using rsa_key the code is available at: http://gist.github.com/37446 The point is that I am missing the knowledge needed in order to add path control. That is, controlling which path(s) a user can

[Twisted-Python] reactor.spawnProcess cause error fatal: The remote end hung up unexpectedly

2008-12-19 Thread Tzury Bar Yochay
repository in /home/tzury/clone-repo7/.git/ remote: Counting objects: 347, done. remote: Compressing objects: 100% (232/232), done. Receiving objects: 100% (347/347), 91.75 KiB, done. remote: Total 347 (delta 234), reused 177 (delta 114) Resolving deltas: 100% (234/234), done. tz...@regulus:~$

Re: [Twisted-Python] SSH Server with commands filtering

2008-12-18 Thread Tzury Bar Yochay
> Since execCommand is already only called in the reactor thread, this > isn't doing much - but it is slightly changing the timing of when > things happen. That suggests the real problem may be a race between > different parts of your code. It's not obvious what the race might be > between, from

Re: [Twisted-Python] SSH Server with commands filtering

2008-12-18 Thread Tzury Bar Yochay
On Thu, Dec 18, 2008 at 4:01 PM, Jean-Paul Calderone wrote: > On Thu, 18 Dec 2008 15:38:55 +0200, Tzury Bar Yochay > wrote: >> >> Hi, >> I am willing to deploy on my server an SSH daemon which I can control >> what commands can be executed, and by who. >>

[Twisted-Python] SSH Server with commands filtering

2008-12-18 Thread Tzury Bar Yochay
emote: Compressing objects: 100% (232/232), done. Receiving objects: 100% (347/347), 91.75 KiB, done. remote: Total 347 (delta 234), reused 177 (delta 114) Resolving deltas: 100% (234/234), done. tz...@regulus:~$ -- Tzury Bar Yochay ___ Twisted-Python mailing