Skip to content

Setting Bash as the default shell in your RACF OMVS segment breaks your shell if you don't have any commands in /etc/profile #93

@lcarcaramo

Description

@lcarcaramo

If I set zopen bash as my default shell in my RACF OMVS segment and I have a /etc/profile that just exports some environment variables, the shell will break.

OMVS Segment:

OMVS INFORMATION
----------------
...
PROGRAM= /usr/local/zopen/local/bin/bash
...

/etc/profile

# encoding & tagging stuff
export _BPXK_AUTOCVT='ON'
export _CEE_RUNOPTS='FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)'
export _TAG_REDIR_ERR=txt
export _TAG_REDIR_IN=txt
export _TAG_REDIR_OUT=txt

# zopen
export ZOPEN_HOME=/usr/local/zopen/local
export PATH=${ZOPEN_HOME}/bin:$PATH
export LIBPATH=${ZOPEN_HOME}/lib:$LIBPATH
export MANPATH=${ZOPEN_HOME}/share:$MANPATH

# zoau
export ZOAU_HOME=/usr/lpp/IBM/zoau/v1r3
export PATH=${ZOAU_HOME}/bin:$PATH
export LIBPATH=${ZOAU_HOME}/lib:$LIBPATH
export PYTHONPATH=${PYTHONPATH}:${ZOAU_HOME}/lib
export MANPATH=${ZOAU_HOME}/docs/%L:$MANPATH

Broken Shell on Login:

$ ssh sys1
�/�����

However, if i just add a command (like ls for example) to the end of /etc/profile, everything works:

% ssh sys1
-bash-5.3#

I tested this on a 3.1 system that should have all of the latest service installed.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions