how do I set the environment for ksh for root?

how do I set the environment for ksh for root?

Post by yft » Fri, 02 Apr 1999 04:00:00



Hi

I would like to type "ksh" at the root prompt and get a Korn shell ($), but
I don't. All I get is the sh prompt (#). I have set up a .kshrc (at the
root) and modified the /etc/profile, but for some reason I don't get a ksh.
Any ideas?

Thanks in advance.

Jon

 
 
 

how do I set the environment for ksh for root?

Post by Jeffrey B. Merc » Fri, 02 Apr 1999 04:00:00



> Hi

> I would like to type "ksh" at the root prompt and get a Korn shell ($), but
> I don't. All I get is the sh prompt (#). I have set up a .kshrc (at the
> root) and modified the /etc/profile, but for some reason I don't get a ksh.
> Any ideas?

> Thanks in advance.

> Jon

When you type ksh from the root prompt and you get a "#" for a prompt, you are
at that point in the Korn Shell. You may source your .kshrc by . ~/.profile
and this will pick up the environment the you have defined. If you would like
a different promt the set it in the .kshrc file with PS1="$" or whatever you
may want your prompt to be set to.

Jeff Merck

 
 
 

1. How to set environment for remote ksh?

This is probably a FAQ, but what the heck.  Here's what I do:

  To get a desired configuration for remsh's run on a machine for
  which your SHELL is /bin/ksh, use the following command format:

  remsh <remote hostname> ENV=<remote.environment.file> ksh -c <cmd>

It doesn't seem possible to include any arguments to the <cmd>, though.
Am I missing something obvious?
_____________

                        Hewlett-Packard Disk Memory Division

2. Is it possible to tunnel UDP packets via httptunnel?

3. Setting environment vars from csh to ksh

4. kmenu can't detach menus

5. wine: How to set DOS environment vars?

6. CFP: chicago suburb linux related bbs and usergroup

7. setting the root environment

8. Remote DVD

9. Setting environment variables for root on Solaris 2.6

10. Setting environment variables as root

11. is it possible to set up sendmail in a change-rooted environment on linux?

12. Setting the root shell to ksh?

13. root has /bin/ksh while users have /usr/bin/ksh