brianvandergaast wrote:
> well, I need to produce a webpage that can have controls to
> delete/download/move files on the usb stick(on SBC) and have a
> control to shutdown the board. stuff like that. The board is used in
> a highly remote area where the only one within range of the wifi will
> be myself. Direction is much apreciated
Change the User/Group specified in the httpd.conf file. instead of running
apache as nobody/nogroup, you could use root/root (unsafe). A safer option is
to create a www group and set Group to www in the httpd.conf file.
For manipulation of the memory stick, mount the USB stick so it is part of
group www and set the SGID bit. With the SGID bit set
files created on the USB stick will be part of the www group so the web server
can manipulate the files on the stick.
For higher level control over the system (ie. shutdown), a wrapper script with
the needed perms should be used.
You need to decide how critical is the system and how well you need to protect
it. You should also consider requiring a user ID and password to gain access
to the file and shutdown controls.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|