Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

[QUESTION] how to auto-exec cmd when login

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


wangchen at cn

Mar 19, 2008, 10:47 PM

Post #1 of 2 (652 views)
Permalink
[QUESTION] how to auto-exec cmd when login

Sorry, this post is neither for patch not for bug reporting.
I just want to ask a question.

Requirement:
---
User want to login to a server(which has a chroot environment) by ssh.
And when user login to the server, sshd will automatically make the
login account to chroot first, and user can only use that chroot env.
---

I know we have a ChrootDirectory feature in current development tree.
But on RHEL, SLED and other distributions, there are only old openssh
(maybe OpenSSH_4.2).
So I think ChrootDirectory is not a good solution for this kind of
requirement.

Can you tell me how to achieve this purpose by old Openssh, such as
OpenSSH_4.2?

--
WCN

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


stuge-openssh-unix-dev at cdy

Mar 20, 2008, 9:23 AM

Post #2 of 2 (607 views)
Permalink
Re: [QUESTION] how to auto-exec cmd when login [In reply to]

On Thu, Mar 20, 2008 at 01:47:35PM +0800, Wang Chen wrote:
> chroot

..

> Can you tell me how to achieve this purpose by old Openssh, such
> as OpenSSH_4.2?

If it is an important feature I think upgrading is a good idea.

If upgrading is impossible you can use a custom shell that implements
any desired policy.

IIRC rssh was one shell that did chroot.


//Peter
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.