Not sure about the correct permissions when running Ruby Scripts

I am getting the following warning when I run my Ruby script

warning: Insecure world writable dir /Users/cs/Documents in PATH, mode 040777

      

The solution is to change the permissions. However, I'm not sure which one is right.

I use many user accounts for different purposes. I have one main account under which I run commands in my cs -account.

What permissions would you specify for cs -account?

0


a source to share


1 answer


Just run chmod og-w /Users/cs/Documents

it and you should be fine.



This will remove the "other" and "group" access rights.

+1


a source







All Articles