So I recently joined the Linux community but am still learning the differences between it and Windows. At this point in my project I am just getting a users input of a file that he/she wants to open to write to. The testing to see if the file entered exists or not seems to be working ok. However instead of just returning an error if the file does not exist i want to create it. That seems to be working almost fine. The file that I create becomes locked and not usable. Im guessing because im not in root mode. But I would like the file to be used by anyone. How would I set the permissions for this so that it is usable to write to immediately?