Re: Calling User Program
- From: Amit Dor-Shifer <amitds@xxxxxxxxxx>
- Date: Wed, 26 Aug 2009 10:01:01 +0300
Though not strictly an SSH issue, I believe you can also override the 'shell' setting for a designated user. E.G. replace /bin/bash or whatever SHELL you have assigned to that user with /path/to/my/app. The result will be that login shall invoke /path/to/my/app.
read 'man 5 passwd' & 'man useradd'
Amit
Alberto Mijares wrote:
On Tue, Aug 25, 2009 at 6:41 PM, linux newbie<linux.newbie79@xxxxxxxxx> wrote:
Hi,
I am running sshd (version 5.2.p1) in my embedded platform and I can
succesfully login
from ssh client in remote host.
I like to do some modifications. i.e. After typing username and
password, I want to run a application program directly instead of
prompt. I like to know, which file has to be modified?
Thanks in Advance
For wide-system setting:
/etc/profile (sh & bash)
Per-user settings:
~/.profile (sh & bash)
~/.bash_profile (bash)
Regards
Alberto Mijares
- References:
- Calling User Program
- From: linux newbie
- Re: Calling User Program
- From: Alberto Mijares
- Calling User Program
- Prev by Date: Re: Calling User Program
- Next by Date: Fwd: Calling User Program
- Previous by thread: Re: Calling User Program
- Next by thread: Fwd: Calling User Program
- Index(es):
Relevant Pages
|