Re: Calling User Program



Thanks got it working.

my /etc/profile "cd" to /home instead of /home/$USER

after editing this file things are working fine as expected.

Thanks for your support.

On Wed, Aug 26, 2009 at 10:12 AM, linux newbie<linux.newbie79@xxxxxxxxx> wrote:
Thanks for suggestion.

On logging from remote-host to my server, It takes me to HOME
directory of root instead of /$USER directory. Hence even after
editing .profile in the user-directory, its not working.

Can you please suggest how to configure sshd to user-directory?

On Wed, Aug 26, 2009 at 9:54 AM, Alberto Mijares<amijaresp@xxxxxxxxx> 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





Relevant Pages

  • Re: Calling User Program
    ... On logging from remote-host to my server, ... Can you please suggest how to configure sshd to user-directory? ... For wide-system setting: ... /etc/profile (sh & bash) ...
    (SSH)
  • Re: What IDE are you using?
    ... Listen, while function completion, syntax highlighting and the like are cool, I spend far more of my time doing basic editing than just function calls or function call headers. ... While an IDE might gain me some convenience in the areas of function call completion it's not where I spend the majority of my time. ... Additionally, as a scripter and system admin, I deal in a plethora of languages, including, but not limited to, PHP, Perl, Bash, Awk, HTML, sed, Visual Basic, etc. XEmacs handles all of them with ease and similarity, whereas an IDE geared toward PHP probably wouldn't handle Bash very easily. ... For instance - I have to fit the equivalent of a semester into one week. ...
    (comp.lang.php)
  • Re: Can not retrieve complete previous EOF-type command
    ... I am using vi-style command line editing interface on my new linux box. ... Do you mean you configured "set -o vi" in bash? ... Perhaps the key difference between your two configurations on the two hosts is ...
    (comp.unix.shell)
  • Re: Bash commands
    ... I'm fairly new to bash so I get more ... >>the ABS Guide says it should be. ... >something to, say, .bashrc so it executes something on certain ... the sum total of my editing. ...
    (Debian-User)
  • Re: Linux users seeks some freeBSD pointers
    ... Ksh never had a problem with this (I use VI editing ... You're right it does work fine in Freebsd sh as far back as 2.2.8, ... What DOESN'T work, and the basis for my imperfect memory, is bash. ... old Korn shell works fine, as does Freebsd sh, BUT bash is broken, ...
    (comp.unix.bsd.freebsd.misc)