Re: Sessions
| From: | Curt Zirzow | Date: | Sun, 17 Aug 2003 00:28:15 +0000 |
| Subject: | Re: Sessions | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159815@lists.php.net to get a copy of this message | ||
* Thus wrote Jaap van Ganswijk (ganswijk@xs4all.nl):
> At 2003-08-16 22:45 +0000, Curt Zirzow wrote:
> >* Thus wrote Jaap van Ganswijk (ganswijk@xs4all.nl):
> >> At 2003-08-16 23:28 +0200, Peda wrote:
> >>
> >> When you have a shell login, try this:
> >> - cd /tmp
> >> - chown . <your_user_name>
> >>
> >> This probably gives an error warning.
> >>
> >> - chmod u+rw .
> >
> >Don't set your /tmp directoy to those settings. /tmp is a system
> >directory and should not be owned by any paticular user nor have rw
> >permissions for a paticular user.
>
> You're missing some points here:
> - When everything is organized okay, he can't make
> himself the owner of /tmp, so trying it doesn't
> hurt.
True, it wont hurt, but why suggest to incorrectly do something
that is most likely going to fail anyway.
> - But it isn't organized okay and he is asking how
> he can check/change it.
again, fixing it incorrectly isn't the solution.
> - It doesn't hurt when the /tmp directory is from a
> particular user as long as every one has read and
> write permission. Root and programs running with
> root-permissions can do what they want anyway.
Yes it does hurt, /tmp should only be set up to whoever created the
file can read write to it, no one else can touch the file.
> - If he would manage to own the /tmp directory,
> changing his own 'u'=user permissions don't
> affect the permissions of others, but it would
> help him to solve his problem (and isolate the
> problem in case he would want a more fundamental
> solution).
The problem is already isolated. the /tmp directory needs to have
the correct permissions.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."