I would define the program run for the user at session initiation into /usr/bin/false in /etc/passwd. The default value parameter is /usr/bin/ksh.
When I try to modify it with commands:
bash-5.1# usermod -s /usr/bin/false test1 Check "/etc/security/login.cfg" file. Error changing "shell" to "/usr/bin/false" : Value is invalid. bash-5.1# chuser shell="/bin/false" test1 Check "/etc/security/login.cfg" file. Error changing "shell" to "/bin/false" : Value is invalid. bash-5.1# chsh test1 /usr/bin/false Error setting shell for "test1" to "/usr/bin/false" : Value is invalid. So, all commands are giving the same error. Does IBM AIX 7.2 not support /usr/bin/false?
When I check the available options, I get this:
bash-5.1# chsh test1 Current available shells: /bin/sh /bin/bsh /bin/csh /bin/ksh /bin/tsh /bin/ksh93 /usr/bin/sh /usr/bin/bsh /usr/bin/csh /usr/bin/ksh /usr/bin/tsh /usr/bin/ksh93 /usr/bin/rksh /usr/bin/rksh93 /usr/sbin/sliplogin /usr/sbin/uucp/uucico /usr/sbin/snappd test1's current login shell: /usr/bin/ksh Change (yes) or (no)? > no Any idea please thanks.