[QUESTION] how to auto-exec cmd when login

This is a discussion on [QUESTION] how to auto-exec cmd when login within the OpenSSH Development forums, part of the Networking and Network Related category; Sorry, this post is neither for patch not for bug reporting. I just want to ask a question. Requirement: --- User ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-20-2008
Wang Chen
 
Posts: n/a
Default [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@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0