excel - Need all files created in a folder at 644 permission automatically -
in site, generating reports (custom code) in excel format. happens creates excel file @ location , user supposed download there through link.
the problem file being created permission of 600 means user unable download it. there way can have 644 (or higher) permission?
i read can place htaccess file in folder excel file being created. htaccess file ensure file created in folder have read access. don't know write in htaccess file.
many thanks.
you need use acls's set default permissions. system has have feature installed. can use man acl
more info.
say have reports directory. set default permissions.
setfacl -d -m g::rwx /reports setfacl -d -m o::rx /reports
this set permissions on group , other. can verify
getfacl /reports
you can read more on answer.
and here
Comments
Post a Comment