From: Pat Gunn <qc@apk.net>
Subject: Re: Help: Apache Web server
Date: 2000/09/23 [thread overview]
Message-ID: <39CD18A6.330D5D82@apk.net> (raw)
In-Reply-To: Pine.OSF.4.21.0009231527190.9488-100000@ernie.WPI.EDU
Gunnar Gaubatz wrote:
>
> On Thu, 21 Sep 2000, Marble Head wrote:
>
> > > cd /home
> > > chmod 711 ~user
> > > chmod 755 ~user/public_html
> > > chmod 644 ~user/public_html/<files/here>
> > > chmod 755 ~user/public_html/<dirs/here>
> >
> > Have you tried this?
> Yep, it works. Believe him.
>
> > It doesn't seem to make sense to me. Why the ~ in front of user? Is that a special
> > folder somebody created, or is it part of their login name, or a type-o, or
> > something I don't understand?
> The latter. The "~" character is an abbreviation for /home/, hence ~user
> means /home/user.
Not exactly. It actually looks for the home directory in /etc/passwd (or whatever)
using getpwuid(). If your home directories arn't under /home, or if a few users have
a home directory in an odd place, the ~ notation will find and be replaced by their
home directory correctly. Try
ls ~games/
to see what I mean.
--
"Religion is a crutch, and only the crippled need crutches" -- Madalyn Murray
Any opinions expressed in this message do not necessarily reflect
the official position of Pat Gunn or his employer. Instead, they
reflect the official position of the reader(s).
next prev parent reply other threads:[~2000-09-23 4:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-19 4:00 Help: Apache Web server Pixel
2000-09-19 4:00 ` sideband
2000-09-19 4:00 ` Marble Head
2000-09-20 3:59 ` Pixel
2000-09-20 4:00 ` sideband
2000-09-21 4:00 ` Sally Woolrich
2000-09-20 4:00 ` Mamata Desai
2000-09-21 4:00 ` Marble Head
2000-09-22 0:11 ` James T. Dennis
2000-09-23 4:00 ` Gunnar Gaubatz
2000-09-23 4:00 ` Pat Gunn [this message]
2000-09-24 4:00 ` Gunnar Gaubatz
2000-09-19 4:00 ` Pixel
2000-09-19 4:00 ` sideband
2000-09-19 14:12 ` Pixel
2000-09-19 14:14 ` Pixel
2000-09-19 4:00 ` sideband
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox