PASE默认情况下,环境附带并使用 korn shell。 ibmpaseforishell变量可用于更改默认值,但这是针对所有用户的。使用 SSH 登录时如何更改用户的默认 shell?
最佳答案
现在,最好的方法是使用 QSYS2.SET_PASE_SHELL_INFO()
SQL 过程。
-- set current user's shell
CALL QSYS2.SET_PASE_SHELL_INFO('*CURRENT', '/QOpenSys/pkgs/bin/bash');
-- set a specific user's shell
-- (requires *SECADM special auth plus *USE and *OBJMGT to the user profile)
CALL QSYS2.SET_PASE_SHELL_INFO('THATUSER', '/QOpenSys/pkgs/bin/bash');
-- set the default shell which is returned for users that do not have
-- (requires *SECADM special auth plus *USE and *OBJMGT to QSYS)
CALL QSYS2.SET_PASE_SHELL_INFO('*DEFAULT', '/QOpenSys/pkgs/bin/bash');
有关此主题的更详细的文章是 here .
关于bash - 为单个用户设置默认 PASE IBM i shell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23913957/