Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

repost: diff between /sbin/sh and /usr/bin/sh

Status
Not open for further replies.

joephilip

MIS
Apr 29, 2002
41
US
When I looked at the /etc/passwd on Solaris (Sun OS 5.5.1), their shell is set to /sbin/sh.

When I do "which sh", I get /usr/bin/sh.

So, why is set to /sbin/sh


Thanks,

Joani Tamminen
 
For user "root" the login shell is /sbin/sh and for other users it is /bin/sh or as you define in the profile file for the user.

YSaini
 
/sbin/sh is statically linked so that /usr (i.e /usr/lib) does not have to be mounted for it to run everything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top