# WHILE the user agostino has /bin/bash as shell (FINE): test ~ # su - agostino -c 'echo $SHELL' /bin/bash test ~ # su - agostino -c 'eselect java-vm set user 1' test ~ # # WHILE the user agostino has /sbin/nologin as shell (NOT FINE): test ~ # su - agostino -c 'echo $SHELL' This account is currently not available. test ~ # su - agostino -c 'eselect java-vm set user 1' This account is currently not available. A workaround is set bash as shell, change the user-vm and rechange the shell. It could be useful because some people create unprivileged users to run jar(s).