OS X Permissions question: echo works in ../web2py but not ../web2py/applications?

44 views
Skip to first unread message

Tom Campbell

unread,
Oct 19, 2015, 9:53:28 PM10/19/15
to web2py-users
In the most recent version of Mac OS X, if I'm in the web2py directory this works fine:

    echo "# todo" >> README.md 


Yet if I'm in web2py/applications or any of its subdirectories I get a "Permission denied" error. What incredibly stupid thing am I doing wrong? 


    

Massimo Di Pierro

unread,
Oct 20, 2015, 12:07:00 PM10/20/15
to web2py-users
I do not know but you do seem to have permissions to write in that folder. You can use chmod and chown to restore those permissions. This could also be a problem with the filesystem. Some time permissions go bad in OSX and you have to use the Disk Utils to fix permissions and then reboot.

Tom Campbell

unread,
Oct 20, 2015, 1:26:51 PM10/20/15
to web...@googlegroups.com
Thank you, Dr. Di Pierro! I did reboot, then run Disk Utility, which is now so user friendly I couldn't see what it found. Didn't solve the problem. I will indeed use chown. Just wanted to make sure there was no change of permissions in web2py that I needed to know about.  Thought maybe there was some kind of security upgrade or something that using chown might break something else down the line.

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/oqYxn3E8xuc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Massimo Di Pierro

unread,
Oct 20, 2015, 1:50:29 PM10/20/15
to web2py-users
It depends now you run the web server. On Mac you probably run it with rocket under your credentials. So if they are owned by you and you have permission to write in the folder, it should work. I have had issues with borken permissions on Mac and the solution was to delete the folder and create another one.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.

Tom Campbell

unread,
Oct 20, 2015, 2:25:28 PM10/20/15
to web...@googlegroups.com
Ah, relief. You have diagnosed the issue exactly.

Thank you so much.

Ron McOuat

unread,
Oct 21, 2015, 2:22:05 AM10/21/15
to web2py-users
OS X El Capitan or 10.11.X no longer has a Repair Permissions option in Disk Utility. Apple says they protect the system files and it is no lobger needed.
Reply all
Reply to author
Forward
0 new messages