Interpret an `ls -l` permission string and choose the narrow access fix.
A deploy user cannot read /srv/app/config.yml. ls -l shows -rw-r----- 1 root app 914 Jun 24 config.yml. Permission read order: file type -> owner bits -> group bits -> other bits -> matching process identity The common shortcut is to add o+r or 777 because it makes the error disappear, but that grants access to identities that do not need the config. File type Read the first character: - means regular file, not directory or link. File and directory permissions behave differently. On a regular file, read means read contents; execute means execute as a program. Mode triplets Split rw-r-----…
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in