Red Hat Enterpise LInux Shell Maintenance

Posted on 2011-10-24
Medium Priority
Last Modified: 2012-06-27
I know that the default shell on Linux is bash but if I want to install ksh93 on a server what extra maintenance would I have to do to maintain that shell then if I didnt have it installed ?

Im asking from a sys admin point of view. What stresses does/will it cause.

Question by:MehtaJasmin
  • 3
LVL 31

Expert Comment

ID: 37020898
50 points :(
Ok, here it goes.

ksh93 is installed by default.  You should have it

Issue command
which ksh

To change a user's login shell issue command

as a common user.

Or issue command
usermod -s /bin/ksh <USERID>

as admin
LVL 31

Expert Comment

ID: 37020906
As admin, it should not cause any extra headaches. It is secure and good enough. Every user can select a shell as a login shell and they can also change a shell without changing any setting

For example issue command


to work in Korn shell
LVL 19

Accepted Solution

xterm earned 200 total points
ID: 37020944
As to your stress question, it won't cause you any issues at all - you can have as many shells installed as you want to, and it won't hurt your system at all nor require you to do any additional work.

I think the only stress here is on farzanj because the question is only worth 50 points :)  BTW, his answer is correct, although depending on the install option selected it's possible that ksh isn't present.

If the command "which ksh" replies with "/usr/bin/which: no ksh in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

Or something like that, then you will need to do "yum install ksh" as root.
LVL 31

Expert Comment

ID: 37058236
@xterm:  This is not funny.  Would you please leave me alone?

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month17 days, 10 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question