Thread View: best.www
10 messages
10 total messages
Started by lordbear
Wed, 11 Nov 1998 00:00
paths - 'webadmin/home/webX/username' or?
Author: lordbear
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
24 lines
1479 bytes
1479 bytes
Some times ago, I thought I saw one of the resident gurus saying that
one would do well to avoid the use of '/webadmin/home/webX/username'
in one's Perl CGI paths. The problem being that the 'webX' part
can (and does!) change without notice. The alternative '/home/username'
however, produces permissions related errors in several of my CGIs.
e.g., script says:
open(ERROR,">>/webadmin/home/web3/lordbear/public_html/log/maillist.errors")
if I change it to :
open(ERROR,">>/home/lordbear/public_html/log/maillist.errors")
I get an error: " CGI Error: Permission denied".
Why?
Bear
-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
Don 'Bear' Wilkinson San Francisco / Daly City bear@lair.org
Computer support professional seeking full-time employment;
review my resume and interests at http://www.lair.org/bear/work.html
Re: paths - 'webadmin/home/webX/username' or?
Author: Malcolm Hoar
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
26 lines
1672 bytes
1672 bytes
In article <364a10fd$0$12765@nntp1.ba.best.com>, lordbear@NOSPAMbest.com wrote: > >Some times ago, I thought I saw one of the resident gurus saying that >one would do well to avoid the use of '/webadmin/home/webX/username' >in one's Perl CGI paths. The problem being that the 'webX' part >can (and does!) change without notice. The alternative '/home/username' >however, produces permissions related errors in several of my CGIs. > >e.g., script says: >open(ERROR,">>/webadmin/home/web3/lordbear/public_html/log/maillist.errors") > >if I change it to : >open(ERROR,">>/home/lordbear/public_html/log/maillist.errors") The second pathname should be valid provided your public_html symlink in HOME is intact. Works for me all the time. Methinks you have a permissions issue (writing) rather than a pathname issue. -- |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Malcolm Hoar "The more I practice, the luckier I get". | | malch@malch.com Gary Player. | | http://www.malch.com/ Shpx gur PQN. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: paths - 'webadmin/home/webX/username' or?
Author: Todd Michel McComb
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
11 lines
1058 bytes
1058 bytes
In article <364a14bb$0$12775@nntp1.ba.best.com>, Malcolm Hoar <malch@malch.com> wrote: >The second pathname should be valid provided your public_html >symlink in HOME is intact. Works for me all the time. *AND* your home directory has 'x' permission for the server, something many people don't have (or want). People should not use the "webX" version, but they should be using the "pub" version (i.e. replace "web1" with "pub" in that path, and it won't change when you move partitions).
Re: paths - 'webadmin/home/webX/username' or?
Author: lordbear
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
33 lines
2103 bytes
2103 bytes
Malcolm Hoar <malch@malch.com> wrote:
> In article <364a10fd$0$12765@nntp1.ba.best.com>, lordbear@NOSPAMbest.com wrote:
>>
>>Some times ago, I thought I saw one of the resident gurus saying that
>>one would do well to avoid the use of '/webadmin/home/webX/username'
>>in one's Perl CGI paths. The problem being that the 'webX' part
>>can (and does!) change without notice. The alternative '/home/username'
>>however, produces permissions related errors in several of my CGIs.
>>
>>e.g., script says:
>>open(ERROR,">>/webadmin/home/web3/lordbear/public_html/log/maillist.errors")
>>
>>if I change it to :
>>open(ERROR,">>/home/lordbear/public_html/log/maillist.errors")
> The second pathname should be valid provided your public_html
> symlink in HOME is intact. Works for me all the time.
> Methinks you have a permissions issue (writing) rather than a
> pathname issue.
That's what I assumed to. I banged my head against this for most
of a day, trying different perms on parent dirs and so on. When
I changed the absolute path it worked, when I reverted, it failed.
This happens on two different scripts. <shrug>
Bear
-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
Don 'Bear' Wilkinson San Francisco / Daly City bear@lair.org
Computer support professional seeking full-time employment;
review my resume and interests at http://www.lair.org/bear/work.html
Re: paths - 'webadmin/home/webX/username' or?
Author: Malcolm Hoar
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
18 lines
1397 bytes
1397 bytes
In article <364a387a$0$12771@nntp1.ba.best.com>, lordbear@best.com wrote: >That's what I assumed to. I banged my head against this for most >of a day, trying different perms on parent dirs and so on. When >I changed the absolute path it worked, when I reverted, it failed. > >This happens on two different scripts. <shrug> Did it work to the point of appending to the file? If so, I guess your public_html symlink is busted or there's something weird up with the server. -- |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Malcolm Hoar "The more I practice, the luckier I get". | | malch@malch.com Gary Player. | | http://www.malch.com/ Shpx gur PQN. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: paths - 'webadmin/home/webX/username' or?
Author: Todd Michel McComb
Date: Sun, 15 Nov 1998 00:00
Date: Sun, 15 Nov 1998 00:00
13 lines
1148 bytes
1148 bytes
In article <364f9253$0$12782@nntp1.ba.best.com>, <lordbear@NOSPAMbest.com> wrote: >> *AND* your home directory has 'x' permission for the server, something >> many people don't have (or want). >6:44pm /home/lordbear> ls -ld public_html/. >drwx--x--x 14 lordbear mosaic 1024 Nov 15 03:57 public_html/. Yes, if that didn't have permission, you wouldn't be able to see your website at all. Try 'ls -ld ~/.' for what I meant. >So, the preferred path is '/webadmin/home/pub/username/public_html'? Yes.
Re: paths - 'webadmin/home/webX/username' or?
Author: lordbear
Date: Mon, 16 Nov 1998 00:00
Date: Mon, 16 Nov 1998 00:00
25 lines
1749 bytes
1749 bytes
Todd Michel McComb <mccomb@medieval.org> wrote:
> In article <364a14bb$0$12775@nntp1.ba.best.com>,
> Malcolm Hoar <malch@malch.com> wrote:
>>The second pathname should be valid provided your public_html
>>symlink in HOME is intact. Works for me all the time.
> *AND* your home directory has 'x' permission for the server, something
> many people don't have (or want).
6:44pm /home/lordbear> ls -ld public_html/.
drwx--x--x 14 lordbear mosaic 1024 Nov 15 03:57 public_html/.
> People should not use the "webX" version, but they should be using
> the "pub" version (i.e. replace "web1" with "pub" in that path, and
> it won't change when you move partitions).
So, the preferred path is '/webadmin/home/pub/username/public_html'?
Bear
--
-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
Don 'Bear' Wilkinson San Francisco / Daly City bear@lair.org
Computer support professional seeking full-time employment;
review my resume and interests at http://www.lair.org/bear/work.html
Re: paths - 'webadmin/home/webX/username' or?
Author: lordbear
Date: Mon, 16 Nov 1998 00:00
Date: Mon, 16 Nov 1998 00:00
27 lines
1860 bytes
1860 bytes
Todd Michel McComb <mccomb@medieval.org> wrote:
> In article <364f9253$0$12782@nntp1.ba.best.com>,
> <lordbear@NOSPAMbest.com> wrote:
>>> *AND* your home directory has 'x' permission for the server, something
>>> many people don't have (or want).
>>6:44pm /home/lordbear> ls -ld public_html/.
>>drwx--x--x 14 lordbear mosaic 1024 Nov 15 03:57 public_html/.
> Yes, if that didn't have permission, you wouldn't be able to see
> your website at all. Try 'ls -ld ~/.' for what I meant.
drwx------ 14 lordbear best 512 Nov 16 09:53 /home/lordbear/.
>>So, the preferred path is '/webadmin/home/pub/username/public_html'?
> Yes.
Now, next question; how to do a 'global' search and replace? :)
Bear (who needs to get some more Unix books - like for sed & regexps :))
--
-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
Don 'Bear' Wilkinson San Francisco / Daly City bear@lair.org
Computer support professional seeking full-time employment;
review my resume and interests at http://www.lair.org/bear/work.html
Re: paths - 'webadmin/home/webX/username' or?
Author: Todd Michel McComb
Date: Mon, 16 Nov 1998 00:00
Date: Mon, 16 Nov 1998 00:00
13 lines
1103 bytes
1103 bytes
In article <3650684b$0$12761@nntp1.ba.best.com>, <lordbear@NOSPAMbest.com> wrote: >drwx------ 14 lordbear best 512 Nov 16 09:53 /home/lordbear/. Exactly. >>>So, the preferred path is '/webadmin/home/pub/username/public_html'? >Now, next question; how to do a 'global' search and replace? :) cd public_html find . -name '*.*htm*' -print | xargs perl -pi -e 's!/old/path/here!/webadmin/home/pub/username/public_html!g;' #for some value of 'global' ...
Re: paths - 'webadmin/home/webX/username' or?
Author: Smith and O'Halloran
Date: Fri, 20 Nov 1998 00:00
Date: Fri, 20 Nov 1998 00:00
13 lines
1161 bytes
1161 bytes
In article <3650684b$0$12761@nntp1.ba.best.com>, <lordbear@NOSPAMbest.com> wrote: >Now, next question; how to do a 'global' search and replace? :) >Bear (who needs to get some more Unix books - like for sed & regexps :)) Or become comfortable with one-line perl scripts. Such as shell3% perl -pi -e 's%SRC="images/%SRC="../images/%ig' *ml */*ml -Joe -- INWAP.COM is Joe and Sally Smith, John and Chris O'Halloran and our cats See http://www.inwap.com/ for PDP-10, "ReBoot", "Shadow Raiders"/"War Planets"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads