[PLUG] CGI Programming
Kenneth G. Stephens
kens at cad2cam.com
Thu May 2 01:39:11 UTC 2002
look into the command newgrp.
> -----Original Message-----
> From: plug-admin at lists.pdxlinux.org
> [mailto:plug-admin at lists.pdxlinux.org]On Behalf Of Bill Spears
> Sent: Tuesday, April 30, 2002 11:09 PM
> To: plug at lists.pdxlinux.org
> Subject: Re: [PLUG] CGI Programming
>
>
> On Tuesday 30 April 2002 09:13 pm, you wrote:
> > Bill,
> >
> > Notice now you are understanding the permission issue in Linux.
> Good Work.
> >
> > Ken
> >
> True, but it's still not second nature. I tend to program first, then go
> "Doh!", then think about permissions. But I did finally read how groups
> work, and managed to get it working. Though, to get the change
> to work, I
> had to logout and login.
>
> > > -----Original Message-----
> > > From: plug-admin at lists.pdxlinux.org
> > > [mailto:plug-admin at lists.pdxlinux.org]On Behalf Of Bill Spears
> > > Sent: Tuesday, April 30, 2002 8:45 PM
> > > To: plug at lists.pdxlinux.org
> > > Subject: Re: [PLUG] CGI Programming
> > >
> > > On Tuesday 30 April 2002 01:19 pm, you wrote:
> > > > user apache should not have a true shell. unless you want
> > >
> > > people (namely
> > >
> > > > people you don't like) logging into your machine as apache. if
> > >
> > > you need to
> > >
> > > > make changes that would (theoretically) be made by apache,
> use chmod,
> > > > chown, chgrp, etc. On other *NIX systems, httpd runs
> normally as USER:
> > > > nobody GROUP: nobody or www:www, etc.
> > >
> > > RH7.2 runs as apache
> > >
> > > > If you are incredibly paranoid, you may want to consider
> > >
> > > chroot()-ing the
> > >
> > > > apache server also...It's kind of a pain in the arse, but you never
> > > > know....
> > > >
> > > > Why would you want to 'su' to apache?
> > > > If you don't mind my asking...
> > >
> > > It was suggested by someone in an earlier post. I had changed
> > > ownership and
> > > permissions of html and cgi-bin to myself. for easier editing. I
> > > asked if
> > > that was a horrible idea and was told that it was. So I changed
> > > back and was
> > > editing as root, not a good idea, but nobody likes a longer
> > > write, run, fix
> > > cycle than necessary, so I tried su apache, which of course
> didn't work.
> > >
> > > I tried adding a shell to apache, but emacs had trouble starting
> > > (vi didn't
> > > (:-\)) so I change it back. I added myself to the apache
> group and that
> > > works fine.
> > >
> > > > -Brian
> > > >
> > > > On Tuesday 30 April 2002 12:28 pm, you wrote:
> > > > > When I tried to su to apache, it didn't work. So, I
> took a look at
> > > > > /etc/passwd and found that the shell for apache was
> > >
> > > /bin/false. Is it a
> > >
> >
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list