On Sun, 10 Feb 2008, brianvandergaast wrote:
> I have been experimenting with suid and am still having permission
> problems.
There are issues with setuid scripts. You should ideally write a program
wrapper for the script. This is general unix/linux issue and has nothing
to do with the ts boards.
http://www.educ.umu.se/~bjorn/linux/linux-faq/Linux-FAQ-6.html
has a comment.
>
> lets say my script is called test and contains the following
> touch /mnt/usb/testfile
>
> what permisions should i see on that file if I ls -l test?
> aka what -rw-r--r-- sequence should I see if I want that file to be
> executable by all and have permissions of root during execution? and
> that when I enter /test as non-root user the testfile is created
> in /mnt/usb/
>
> Cosmo
>
> --- In "j.chitte" <> wrote:
>>
>> --- In Kevin Cozens <kevin@> wrote:
>>>
>>> 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
>>
>>
>> why do you want to do this sort of thing via a web page rather than
>> the more usual ssh login?
>>
>> obviously running apache as root is a very bad idea. Even if you
> have
>> no outside connection it clearly should not have acces to the whole
>> system.
>>
>> if you really feel the need for a shutdown button, link it to a cgi
>> program owned by root and with suid bit set.
>>
>> man chmod.
>>
>
>
>
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/
|