cancel
Showing results for 
Search instead for 
Did you mean: 

Which path to use for ksh?

Gary Cooper_1
Esteemed Contributor

Which path to use for ksh?

I've just set up some new 11.31 Itanium machines (rx2660s). One of the applications creates some application-specific user accounts and I now notice that /etc/password lists /bin/ksh for some accounts and /usr/bin/ksh for others.

I'm one of those people who like things to be tidy and consistant and so I'd like to change them to be all the same, but which one?

My instinct says as /bin is just a link to /usr/bin anyway to change all of the to be /usr/bin/ksh.

Any ideas?

Thanks,

Gary
4 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Which path to use for ksh?

If you use NIS to share between HP-UX and Linux, you probably want /bin/ksh.
Gary Cooper_1
Esteemed Contributor

Re: Which path to use for ksh?

Hi Dennis,

No Linux, just HP-UX.

Cheers,

Gary
Duncan Edmonstone
Honored Contributor

Re: Which path to use for ksh?

Gary,

I'd go with /usr/bin/ksh every time...

The /bin link to /usr/bin is only there for backwards compatability and as Dennis said for maintaining compliance for non-local users such as NIS/LDAP etc. who might have a user account on other *NIX flavours.

HTH

Duncan

HTH

Duncan
Patrick Wallek
Honored Contributor

Re: Which path to use for ksh?

Just make sure you don't accidentally change roots /sbin/sh to something else.  The shell for root MUST be /sbin/sh.