Here's the output from the ls -ld commands I ran:

[EMAIL PROTECTED] ewar]$ ls -ld /var
drwxr-xr-x   22 root     root         4096 Jun 28 17:25 /var
[EMAIL PROTECTED] ewar]$ ls -ld /var/www
drwxr-xr-x    8 root     root         4096 May  7 17:16 /var/www
[EMAIL PROTECTED] ewar]$ ls -ld /var/www/virtual
drwxr-xr-x    4 root     root         4096 Jul 15 13:32 /var/www/virtual
[EMAIL PROTECTED] ewar]$ ls -ld /var/www/virtual/tiof
drwxr-xr-x   17 ewar     root         4096 Aug  6 15:24
/var/www/virtual/tiof
[EMAIL PROTECTED] ewar]$ chmod 777 /var/www/virtual/tiof
[EMAIL PROTECTED] ewar]$ ls -ld /var/www/virtual/tiof
drwxrwxrwx   17 ewar     root         4096 Aug  6 15:24
/var/www/virtual/tiof

The rest of the files below /tiof are all assigned to ewar:root and I did a
recursive chmod 777 on them

Unfortunately, it's still not working....

  -----Original Message-----
  From: Dave Carabetta [mailto:[EMAIL PROTECTED]
  Sent: 6 August 2004 15:37
  To: CF-Linux
  Subject: Re: http file uploads

  On Fri, 6 Aug 2004 15:28:15 +0100, Edward Chanter <[EMAIL PROTECTED]> wrote:
  > Hi Dave,
  >
  > Thanks for your message, unfortunately it didn't work :-( I matched up
the
  > permissions and ownership as you suggested and I'm still getting the
jrun
  > error.....
  >
  > I appreciate you taking the time to respond though so thanks again :-)
  >

  Then try this (just to test, but it's kind of a security issue because
  it opens up full access to the directory):

  chmod 777 directoryname

  Also, the parent directories leading to the destination directory must
  have permissions as well to even get to the destination. For example,
  take the following structure:

  /website/wwwroot/uploadfiles

  where uploadfiles is where you want to upload your files to. In order
  for you to be able to write to the uploadfiles directory, you need to
  open up the appropriate read/write/execute permissions on the website
  and wwwroot directories as well (*nix systems start at the root
  directory and check permissions all the way down to the destination
  directory). To get the permissions on each of the above, just run:

  ls -ld /website
  ls -ld /website/wwwroot
  ls -ld /website/wwwroot/uploadfiles

  Does that make sense? It's a little difficult for me to give the exact
  answer because I don't know your setup.

  Regards,
  Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to