这是indexloc提供的服务,不要输入任何密码
Skip to content

nginx:access-logs permission denied #1572

@mmerickel

Description

@mmerickel

clean install on a new virtual machine and things are running fine but the first time I ran ssh -t dokku@dokku nginx:access-logs myapp -t I got permission denied.

Further investigation shows the /var/log/nginx folder with drwxr-x--- www-data adm permissions, preventing the dokku user from accessing the folder.

I'm not sure what the "best" solution is here. If I just allow +x on the folder then inotify doesn't work with tail (it needs to be able to read the directory). So the folder probably needs to be changed to the dokku group or something else.

This is using ubuntu 14.04 LTS, dokku v0.4.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions