Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z - Internet FAQ Archives

comp.sys.hp.hpux FAQ
Section - 8.22 Is it OK to change root's shell?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Business Photos and Profiles ]

Top Document: comp.sys.hp.hpux FAQ
Previous Document: 8.21 What happened to /usr/local? What are these /usr/contrib and /opt directories?
Next Document: 8.23 Why does HP-UX 10 generate copious "Sti_save" syslog messages?
See reader questions & answers on this topic! - Help others by sharing your knowledge

No!  root's shell has to be /sbin/sh, the default setting, or another
shell that resides on the root filesystem (ie - /sbin/csh).  The /usr
filesystem isn't mounted in single-user mode, so changing root's shell
to /usr/bin/ksh, or any other shell not on the root filesystem, can
potentially cause you serious grief.

A nice compromise is to add something like the following at the very end
of /.profile:

  # if /usr/ is mounted, change our shell to ksh...
  /usr/bin/true 2>/dev/null && exec /usr/bin/ksh

User Contributions:

Comment about this article, ask questions, or add new information about this topic: