linux - Creating a file anyone can write to, but limiting who can read it -
running linux 2.6 kernel, there way create file write permission read owner , group. need update log file allow owner (usually root) , group read data in (security).
this allowable in base unix permissions model. can have file can write not read it. file following permissions allow users write file.
touch logfile.log chmod 662 logfile.log ls -al -rw-rw--w- 1 mmcgarrah mmcgarrah 0 aug 19 17:15 logfile.log
permissions enter directory containing file other concern. make sure non-owners can traverse file or not able see file write it.
write permission grants delete access file beware malicious users removing file.
Comments
Post a Comment