I guess your lack of experience makes it difficult for you to find reasonable steps to narrow down the error. So let me take some shots into the blue...
- The group www-data seems to point to an Debian or Ubuntu system. Correct? This matters because different systems have different configuration defaults.
- ...those scripts the need to write to specific paths... Does it happen only for some paths? What are the permissions for these paths? Even the owner can't write files without a write permission!
- Can the Perl scripts write to /tmp? If yes: What are the ownership and permissions of the files created by the script?
- Can you login as Sally1 and write to said specific paths or does that fail, too? (NERDVANA suggested a similar approach)
- Have you inspected your web server's error log? Are there warnings or errors regarding your scripts or about your configuration?
- Do you have AppArmor or SeLinux policies in place? (Admittedly that's pretty far-fetched, but those could cause such behaviour)
| [reply] [d/l] [select] |
Problem solved!
Someone's comment made me think differently, yes I made sure to check their ++ button, and others who also gave me ideas,
I logged in command line as Sally1 and tried:
ls -trl > text.txt
And that's when went back to checking group permissions for www-data, of which Sally1 was already part of.
Then I realized that when I went to change the group's permission I was leaving out the g+
I realize for security reasons such a "thing" doesn't exist, but it would be great if you could copy one user's permissions to another in one fell swoop.
| [reply] [d/l] |