Re: Calling User Program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 25, 2009 at 07:24:14PM -0430, Alberto Mijares wrote:
> On Tue, Aug 25, 2009 at 6:41 PM, linux newbie<linux.newbie79@xxxxxxxxx> wrote:
> > I am running sshd (version 5.2.p1) in my embedded platform [...]
> > I like to do some modifications. i.e. After typing username and
> > password, I want to run a application program directly instead of
> > prompt.

> For wide-system setting:
> 
> /etc/profile (sh & bash)
> 
> Per-user settings:
> 
> ~/.profile (sh & bash)
> ~/.bash_profile (bash)

Another way would be to change the user's shell, from something like
/bin/bash or /bin/sh, to the program you want to execute (e.g.
/usr/local/bin/myscript).  Make sure your embedded OS permits this
to be used as a shell, for example by putting it in /etc/shells, if
your embedded OS requires that.

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux