File Permissions

24 views
Skip to first unread message

veavi...@gmail.com

unread,
Apr 5, 2013, 1:39:56 PM4/5/13
to webc-...@googlegroups.com
I am attempting to customize webc with a few additional packages. One of the requirements I need is to set up a local PHP server on the device so I can create a locally hosted webpage (the PHP server is used to call sane on the command line to connect to a scanner and scan images from an attached scanner). However, I need to be able to change the /var/www/* permissions to be owned by the apache server. Currently they're owned by root, meaning the PHP server can't write to anything. And since git doesn't track file permissions, I can't force it to change. Every build of the image ignores my file permission changes and uses the root:root ownership from the git repository. 

Any ideas on how to get the permissions changed? 
I can just have a startup script or alter one of yours to do the change on startup, but I was looking for a better solution if thats possible.

Thanks, Rob

Kai Hendry

unread,
Apr 8, 2013, 9:16:28 AM4/8/13
to webc-...@googlegroups.com
I do not recommend to host a local httpd on Webconverger. Though the
correct permissions if you crazily do so, is to ensure www-data group
permissions. See my new pet project as an example:
http://ws.dabase.com/

The "dream" / "vision" for Webconverger is to support preloaded
"App-cached" apps in the future. I think that should hopefully get rid
of most reasons why people want to run a local httpd.

Except for the scanner use case, of course. Which is quite
interesting. That would need device API support. input type=scan would
be ideal and I would like to implement it, given the support to do so.

I saw a very odd German linux distro which was basically a form (in
Java) + scanner software for processing passport applications. It
would be nice to replace that.

Kind regards,
Reply all
Reply to author
Forward
0 new messages