为单个用户设置缺省的PASE IBM i Shell [英] Set default PASE IBM i shell for individual user

查看:33
本文介绍了为单个用户设置缺省的PASE IBM i Shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PASE 环境已发布并默认使用korn shell. ibmpaseforishell 变量可用于更改缺省值,但是适用于所有用户.在使用SSH登录后如何更改用户的默认外壳?

The PASE environment ships and uses the korn shell by default. The ibmpaseforishell variable can be used to change the default, but that is for all users. How can I change the default shell for a user when then log in using SSH?

推荐答案

如今,最好的方法是使用 QSYS2.SET_PASE_SHELL_INFO() SQL过程.

Nowadays, the best way to do this is to using QSYS2.SET_PASE_SHELL_INFO() SQL procedure.

-- 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');

有关此主题的更详细的文章是此处.

A more detailed write-up about this topic is here.

这篇关于为单个用户设置缺省的PASE IBM i Shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆