I'd encourage you to make sdkman available to other users (look at its Docs, paragraph Custom Installation, add init script that sources init file from $SDKMAN_DIR/bin
directory).
Then have users who want Grails install it.
Or install Grails via its repository (accepting, that this will be an older version than one from SDKMAN).
In my case I used:
export SDKMAN_DIR="/usr/local/sdkman" && curl -s "https://get.sdkman.io" | bash
- make sure $SDKMAN_DIR doesn't exist before you install sdkman as it will be overwritten otherwise
- In
.bashrc
files for users I wanted to be able to use sdkman. AT THE VERY END of these otherwise, it may not work
export SDKMAN_DIR="/usr/local/sdkman"
[[ -s "/usr/local/sdkman/bin/sdkman-init.sh" ]] && source "/usr/local/sdkman/bin/sdkman-init.sh"
Docs: https://sdkman.io/install
/root/bin/
e.g. then it's only there forroot
. put it into/usr/local/bin
e.g. for all users. – Terzaspsql
are not available to all users, then many things can be wrong on that system (or right: e.g. permissions set restrictive). if you have concrete programming problems, please formulate them. if you have questions regarding system administration then maybe the superuser SE might be a better place to ask them. – Terzas