LP8.5.6/OSXS10.6.8 File Permissions Ignored

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

LP8.5.6/OSXS10.6.8 File Permissions Ignored

Jerad Hoff-2
Greetings,

I’ve been trying to play with the [File_Create] and PDF tags, but for whatever reason, Lasso just can’t seem to read or write anything.

In the Server Admin, in the Sites->File Path tab, the following appears in the allowed file paths:

///Users/myname/Sites/site4/PDF

In the Site Admin, in the Setup->Security->Files tab, I see the above directory listed with Allow: Inspect, Read, Create, Write, Move, Copy, Delete

If I look at the permissions for the PDF directory, I see this:

drwxrwxrwx+ 2 lasso  staff     68 Apr  5 07:30 PDF

In the site4 directory, I have a file that contains the following:

[File_Create: 'PDF/test.lasso']
[FILE_CURRENTERROR]

The output is:

No permission

If I create a lasso file in the PDF directory with the same test code, owned by lasso and has permissions drwxrwxrwx+ 2 lasso  staff, I get the exact same results.

Interestingly, in the server admin, when I attempt to upload a test file, the page simply refreshes without any sort of error or success statement and the file I chose to upload never ends up in the tmp directory.

Any ideas where to start on where the permissions are hosed?

Thanks!

  - Jerad
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: LP8.5.6/OSXS10.6.8 File Permissions Ignored

Brad Lindsay
For setting up Lasso for file permissions, be sure to see Steve Piercy's
guide:
     http://www.stevepiercy.com/lasso_stuff/file_perms.lasso

One thing I noticed is that you have Access Control Lists (ACLs) on the
directories - that's what the "+" at the end of the permissions list
means. To view those ACLs add "-e" to the "ls" command:

ls -le /my/path


I would recommend just removing all ACLs for the directory and
everything underneath it which you can do with the following command:

chmod -RN /path/to/directory/

You probably want to do that on your Sites folder. (I believe the -N
option works in 10.6, but I don't have a 10.6 machine to test it on.)


HTH,
Brad


On 4/5/14, 8:39 AM, Jerad Hoff wrote:

> Greetings,
>
> I’ve been trying to play with the [File_Create] and PDF tags, but for whatever reason, Lasso just can’t seem to read or write anything.
>
> In the Server Admin, in the Sites->File Path tab, the following appears in the allowed file paths:
>
> ///Users/myname/Sites/site4/PDF
>
> In the Site Admin, in the Setup->Security->Files tab, I see the above directory listed with Allow: Inspect, Read, Create, Write, Move, Copy, Delete
>
> If I look at the permissions for the PDF directory, I see this:
>
> drwxrwxrwx+ 2 lasso  staff     68 Apr  5 07:30 PDF
>
> In the site4 directory, I have a file that contains the following:
>
> [File_Create: 'PDF/test.lasso']
> [FILE_CURRENTERROR]
>
> The output is:
>
> No permission
>
> If I create a lasso file in the PDF directory with the same test code, owned by lasso and has permissions drwxrwxrwx+ 2 lasso  staff, I get the exact same results.
>
> Interestingly, in the server admin, when I attempt to upload a test file, the page simply refreshes without any sort of error or success statement and the file I chose to upload never ends up in the tmp directory.
>
> Any ideas where to start on where the permissions are hosed?
>
> Thanks!
>
>    - Jerad
> #############################################################
> This message is sent to you because you are subscribed to
>    the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to:<[hidden email]>
> Send administrative queries to<[hidden email]>
#lasso8 #permissions
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: LP8.5.6/OSXS10.6.8 File Permissions Ignored

stevepiercy
Here's a new one not yet in my file perms guide.  Recently with
the help of John May, we discovered that an .htaccess file
commonly used by WordPress can interfere with file_ and pdf_
tags when writing files.  To avoid this issue:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^.*\.LassoApp$                  #
add this
RewriteCond %{REQUEST_URI} !^/file-write-destination/.*$    #
add this
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

--steve


On 4/5/14 at 10:34 AM, [hidden email] (Brad Lindsay) pronounced:

>For setting up Lasso for file permissions, be sure to see Steve Piercy's guide:
>http://www.stevepiercy.com/lasso_stuff/file_perms.lasso
>
>One thing I noticed is that you have Access Control Lists
>(ACLs) on the directories - that's what the "+" at the end of
>the permissions list means. To view those ACLs add "-e" to the
>"ls" command:
>
>ls -le /my/path
>
>
>I would recommend just removing all ACLs for the directory and
>everything underneath it which you can do with the following command:
>
>chmod -RN /path/to/directory/
>
>You probably want to do that on your Sites folder. (I believe
>the -N option works in 10.6, but I don't have a 10.6 machine to
>test it on.)
>
>
>HTH,
>Brad
>
>
>On 4/5/14, 8:39 AM, Jerad Hoff wrote:
>>Greetings,
>>
>>I’ve been trying to play with the [File_Create] and PDF tags, but for whatever reason, Lasso just
>can’t seem to read or write anything.
>>
>>In the Server Admin, in the Sites->File Path tab, the following appears in the allowed file paths:
>>
>>///Users/myname/Sites/site4/PDF
>>
>>In the Site Admin, in the Setup->Security->Files tab, I see the above directory listed with Allow:
>Inspect, Read, Create, Write, Move, Copy, Delete
>>
>>If I look at the permissions for the PDF directory, I see this:
>>
>>drwxrwxrwx+ 2 lasso  staff     68 Apr  5 07:30 PDF
>>
>>In the site4 directory, I have a file that contains the following:
>>
>>[File_Create: 'PDF/test.lasso']
>>[FILE_CURRENTERROR]
>>
>>The output is:
>>
>>No permission
>>
>>If I create a lasso file in the PDF directory with the same test code, owned by lasso and has
>permissions drwxrwxrwx+ 2 lasso  staff, I get the exact same results.
>>
>>Interestingly, in the server admin, when I attempt to upload a test file, the page simply refreshes
>without any sort of error or success statement and the file I
>chose to upload never ends up in the tmp directory.
>>
>>Any ideas where to start on where the permissions are hosed?
>>
>>Thanks!
>>
>>- Jerad
>>#############################################################
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to:<[hidden email]>
>>Send administrative queries to<[hidden email]>
>#lasso8 #permissions
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: LP8.5.6/OSXS10.6.8 File Permissions Ignored

Jerad Hoff-2
In reply to this post by Brad Lindsay
Greetings,

Thank you for sharing the link to Mr. Piercy’s guide, I had not seen that before. It has given me a number of items to check and test.

Thanks again,

  - Jerad

On Apr 5, 2014, at 7:34 AM, Brad Lindsay <[hidden email]> wrote:

> For setting up Lasso for file permissions, be sure to see Steve Piercy's guide:
>    http://www.stevepiercy.com/lasso_stuff/file_perms.lasso
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>