It's UWAweek 30 (2nd semester, week 1)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 11 other people reading this forum.


 UWA week 42 (2nd semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
11:59am Wed 18th Oct, Christopher M.

"William Rayner" <23*3*2*3@s*u*e*t*u*a*e*u*a*> wrote:
> The project description says that a synced file will have the default file permissions, google tells me that's 0666 and 0777, and this mimics my own linux defaults without umask. However, the sample solution seems to be 0600 and 0700. Should we proceed with 0666 or switch to 0600?
You should use 0666 and 0777 when creating new items. Those values will then be modified by the umask of the process creating the items, which may be a person's shell invoking the command from the command-line or, in our case, a web-server invoking the command. But the value of the umask is the 'preference' of the process, not of the author of the software (unless so documented). Thus you'd only add the extra call to chmod() if a program really required a particular mode for successful execution.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  7:24AM Jul 25 2024
Privacy policy