logging - Jenkins: Permission denied to a 777 file -
i have created jenkins build compile , distribute modules. output of build commands (e.g., make or ant) redirected file named build.log.
the funny thing redirecting echo same file, using tee, fails:
tee: ../../build.log: permission denied the file exists , has 777 permissions (checked ls -ltrh ../..). ideas what's wrong write?
permissions on file important, permissions on super directories of file.
if not have read , execute permissions on directories traversing through, cannot follow relative path file. if lack read permissions on directory "build.log" resides in, cannot list files in directory. read, write, , execute permissions matter directories, , map to:
- read = allows listing of files
- write = allows creating / deleting / modifying files
- execute = allows changing directory directory
Comments
Post a Comment