ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: apache configuration

To:
Subject: Re: [ts-7000] Re: apache configuration
From: "Rich Wilson" <>
Date: Mon, 3 Jul 2006 07:01:56 -0700
On my system, this problem was caused by inappropriate
permissions for / (root). Mine were 666 iirc; I think 755 is
more appropriate, and allows non-root to browse the
file system. ( ls -ld / )

666: drw-rw-rw-
755: drwxr-xr-x

To fix: chmod 755 /

I'm a little surprised that a different kernel would fix this.
If you saw the same problem, perhaps TS needs to
fix their file system image for the 7250.

Rich

On 7/3/06, Phil <> wrote:

Hi Rich,

I was reading your messages with interest last week and tried some
of the commands that you were having problems with, but I was
getting normal results, so I wasn't able to help you at all.

However, I have only just now powered-up a new TS7250 that I
received recently, to find that I get the same results as yourself
when I tried to do anything to do with httpd. I quickly realised
that it was exactly the same problem that you had mentioned. Well,
now I had something to play with.

In the end, it looks like it has something to do with the kernel.
The version on flash is a -ts9 kernel. I compiled a -ts10 kernel
(which in itself is a bit of an issue because of problems with
building for Yaffs2 support, I would have thought this would have
been tested before it was released) and that worked absolutely fine
with no other httpd.conf changes or anything.

Just for everyone's information, another major symptom of this bad
kernel: I'm able to add other users (using adduser, etc), but unable
to login as any other user at all.

It's strange that this bug hasn't been picked up be TS or anyone
else until now? Anyone else with recent TS7250 (-ts9 kernel) who
maybe don't normally use httpd or non-root user accounts care to try
this and see what they get?

I am debating now whether to spend the effort to try and locate the
problem in ts9 or just run with ts10...

Cheers
Phil



--- In ts-7000%40yahoogroups.com, "Rich Wilson" <> wrote:
>
> Janne,
> Thanks for your response.
> Hmm, I think I have permissions correct.
> But here's a puzzler, and perhaps a clue to the problem:
>
> $ su nobody
> su: cannot run /bin/true: Permission denied
> $
>
> apache is running as nobody (except for the first one which is
root).
> /bin/true is a link to busybox
>
> $ ls -l /bin/true
> lrwxrwxrwx 1 root root 7 May 3 18:21 /bin/true -
> busybox
> $ ls -l /bin/busybox
> -rwxr-xr-x 1 root root 505124 Oct 26
2005 /bin/busybox
> $
>
> this looks to me like nobody should be able to run /bin/true, where
> nobody is the name of the user, not a negative.
> Similar problems with 'guest'.
>
> So, I'm still confused, but perhaps one step closer to the
solution.
>
> Rich
>
> On 6/28/06, Janne Mäntyharju <> wrote:
> >
> > If you have changed the index.html, check first that apache
has read
> > permissions to file. You can view permissions by typing ls -
l /var/www.
> > I don't remember which user runs apache server on TS-7250, but
usually
> > it's www-data. If you have uploaded new index.html, it might be
owned by
> > root and www-data can't read it. Change the owner of the file by
typing
> > chown www-data /var/www/index.html . If apache runs as root,
apply read
> > permissions to while by typing chmod a+r /var/www/index.html
> >
> > Hope this helps!
> > -Janne
> >
> >
> > Rich Wilson wrote:
> > >
> > > I have a ts7250. It's still pretty much in its factory
configuration.
> > > It looks like apache is configured to serve a simple web page,
but
> > > whenever I try, I get
> > > "Forbidden
> > > You don't have permission to access /index.html on this
server."
> > >
> > > >From /www/apache/conf/httpd.conf:
> > >
> > > <Directory "/www/apache/htdocs">
> > > Options Indexes FollowSymLinks MultiViews
> > > AllowOverride None
> > > Order allow,deny
> > > Allow from all
> > > </Directory>
> > >
> > > Isn't this the approprite section, and doesn't it allow all
access?
> > >
> > > What am I overlooking?
> > >
> > > Thanks.
> > >
> > > Rich
> > >
> >
> >
> >
>
>
>
> --
> Rich Wilson
>
> 425-337-7129
>




--
Rich Wilson

425-337-7129 __._,_.___


SPONSORED LINKS
Linux os Hardware Arms
Computer internet Computer security Computer hardware security


YAHOO! GROUPS LINKS

  •  Visit your group "ts-7000" on the web.
     
  •  To unsubscribe from this group, send an email to:
     =Unsubscribe
     
  •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU