config file at /home/dokku/.dokkurc/acl
export DOKKU_SUPER_USER=root
export DOKKU_ACL_USER_COMMANDS="help version mariadb:connect"
export DOKKU_ACL_PER_APP_COMMANDS="logs urls enter ps:rebuild ps:restart ps:stop ps:start git-upload-pack git-upload-archive config config:set git-receive-pack git-hook storage:list"
always add -t
command on ssh commandline. for example
ssh -t [email protected] -p 22 logs appname
when do git push. It always failed, even after we add the permission. maybe this is dirty hack.
edit file /var/lib/dokku/plugins/available/acl/user-auth
find the code
...
SSH_USER=$1
SSH_NAME=$2
shift 2
...
after above code, add the code:
set -- "$1" $(echo $2 | sed "s/^'\(.*\)'$/\1/")
set -- "$1" $(echo $2 | sed "s/^\/\(.*\)/\1/")
There is a momment on centos 7, while user dokku
can not execute dokku command. For example, we want to run command dokku apps:list
then it will produce:
User default does not have permissions to run apps:list
Access denied
to resolve this issue is add environment variable NAME
add the line below at file ~dokku/.bashrc
export NAME=$USER