系統管理
1753359 會員
6660 線上
108792 解決方案
發表新文章

bash 當作root shell 有問題?

 
watermelonyu
教授

bash 當作root shell 有問題?

看到 hp 問答有提到,bash 當root shell,在進入單人模式「可能」會停止,如果 /usr 跟 /opt 都不另外切割,那...是不是就可以避過這個問題啊?
2則回覆 2
watermelonyu
教授

bash 當作root shell 有問題?

Hi,

In hpux, the login shell of root user should

use as a archived library excutable.

/sbin/sh is a archived library executable.

/usr/bin/sh is a shared library executable.



So, please use /sbin/sh as login shell of root, DO NOT change it.



Reason:

when a shared libbrary executable excuting, the shared library must there. The shared library is resident in /usr file system.



Event throuth, if /usr is the same as / file system, we still recommand use /sbin/sh as root's login shell, because what if the shared library is corruppted.



Hope this can make things clear.



..

.



watermelonyu
教授

bash 當作root shell 有問題?

Hi,

如同Yoda的回覆

所有在/sbin下的程式都是STATICALLY linked,意思是所有的libraries都是程式的一部份

而在/usr/bin下的程式都是dynamically linked,如果要執行這些程式需要/usr/lib下的shared libraries

因為shared libraries可能會損毀或不存在,因此HP不建議使用其他的shell當login shell