Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: How to make sshd inherit environment variable from its parent process? |
|---|---|
| Date: | Wed, 15 Feb 2006 17:50:12 +0100 |
Chansup Byun <Chansup.Byun@Sun.COM> writes:
Suppose you have hunders of jobs of a particular user and their job types are different from one to another, how do you set "ENVIRONMENT" for each job using ~/.ssh/envionment because there are multiple jobs can be scheduled at the same time? I may have missed something here but this approach doesn't look practical for me.
You are correct.
I'm looking for a way that the sshd process can inherit EVs from its parent process as shown below. Is there a way to do that?
I don't believe there is an easy way. (But I'd be glad to be proved wrong.) I usually do something like replacing ssh remotehost remotecmd with ssh remotehost "sh -c 'ENVVAR=$ENVVAR remotecmd'" -- Leif Nixon - Systems expert ------------------------------------------------------------ National Supercomputer Centre - Linkoping University ------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Connection timed out, Damm, Edward F. (E. Buddy) |
|---|---|
| Next by Date: | RE: Connection timed out, Patrick Morris |
| Previous by Thread: | Re: How to make sshd inherit environment variable from its parent process?, Chansup Byun |
| Next by Thread: | Re: How to make sshd inherit environment variable from its parent process?, Darren Tucker |
| Indexes: | [Date] [Thread] [Top] [All Lists] |