3

I have multiple projects in different programming languages that I will upload on online code hosting platforms as Open Source projects.

What file permissions and ownerships should I set on the files before uploading them? I work on Linux-platforms. It feels wrong uploading files with permission MYNAME:MYNAME as owner and group.

Of course, anyone can change the permissions and ownership to their liking after downloading the project (or maybe they are on other platforms) but is there a best-practice on what to set owner, user and group to initially?

7

Of course, anyone can change the permissions and ownership to their liking after downloading the project (or maybe they are on other platforms) but is there a best-practice on what to set owner, user and group to initially?

Just leave the ownership to default values. Once someone clones a repository on their machine, they'll become the owner.

Same for permission, go with the default values, unless you plan to include executables in the repository which you can set for user (u+x).

  • I see, great and thanks for the input – Beamie Jun 25 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.