delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Reply-To: | Cygwin List <cygwin AT cygwin DOT com> |
Message-Id: | <6.2.1.2.0.20050607192758.07159500@pop.prospeed.net> |
Date: | Tue, 07 Jun 2005 19:50:53 -0400 |
To: | cygwin AT trodman DOT com (Tom Rodman), cygwin AT cygwin DOT com |
From: | Larry Hall <lh-no-personal-replies-please AT cygwin DOT com> |
Subject: | Re: how2 set PATH for noninteractive restricted rbash shell? |
In-Reply-To: | <200506072010.j57KAKea003183@tigris.pounder.sol.net> |
References: | <200506072010 DOT j57KAKea003183 AT tigris DOT pounder DOT sol DOT net> |
Mime-Version: | 1.0 |
At 04:10 PM 6/7/2005, you wrote: ><I'm running 1.5.17, if appropriate pls forward to the bash maintainer> > >I want to be able to run a noninteractive command like > > ssh joedoe AT myhost DOT mydomain DOT xxx somecommand > >where user "joedoe" has /bin/rbash in /etc/passwd for a shell. > > How do I restrict the PATH that is seen for the above ssh session? > >I have tried changing and exporting PATH in ~joedoe/.bashrc but this >file is not read by prior to running "somecommand" above. This isn't a Cygwin-specific question so it's really off-topic for this list. Of course, you can always use something like ~/.bash_login. See the bash man page for more details and what files get executed when. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |