As a normal user I copied some files to a directory (/var/www/rfq-include/tpl) but the files were not able to be opened PHP through apache.
The folder shows as:
The files therein list as follows:
The listing is exactly the same if I am running as myself (tony)
To be able to see what was happing as the Apache user, I edited /etc/passwd so that I could su to user 'www-data'.
As user 'www-data' the file listings look like:
Which looks fine, but listing the folder contents gives:
I have seen the exact same corruption when I have copied files to an NFS mounted drive.
I am running:Can anyone explain what is happening?
Antony
The folder shows as:
Code:
root@debian-gnu-linux-12:/var/www/rfq-include# ls -ld tpldrwxrwxrw- 3 tony tony 4096 Mar 21 11:27 tplroot@debian-gnu-linux-12:/var/www/rfq-include#
Code:
root@debian-gnu-linux-12:/var/www/rfq-include# ls -l tpltotal 120-rw-rw-rw- 1 tony tony 1028 Mar 21 11:27 acceptedrfq.tpl-rw-rw-rw- 1 tony tony 1055 Mar 21 11:27 'authsupplier (Jayden Spring'\''s conflicted copy 2014-06-16).tpl'-rw-rw-rw- 1 tony tony 2257 Mar 21 11:27 authsupplier.tpl-rw-rw-rw- 1 tony tony 3027 Mar 21 11:27 billing.tpl-rw-rw-rw- 1 tony tony 4269 Mar 21 11:27 clientsupp.tpl-rw-rw-rw- 1 tony tony 2027 Mar 21 11:27 error.tpl-rw-rw-rw- 1 tony tony 2990 Mar 21 11:27 footer.tpl-rw-rw-rw- 1 tony tony 1384 Mar 21 11:27 form.tpl-rw-rw-rw- 1 tony tony 3977 Mar 21 11:27 header.tpl-rw-rw-rw- 1 tony tony 1531 Mar 21 11:27 invites.tpl-rw-rw-rw- 1 tony tony 326 Mar 21 11:27 login.tpl-rw-rw-rw- 1 tony tony 564 Mar 21 11:27 log.tpl-rw-rw-rw- 1 tony tony 9343 Mar 21 11:27 longform1.tpl-rw-rw-rw- 1 tony tony 7419 Mar 21 11:27 longform.tpl-rw-rw-rw- 1 tony tony 1301 Mar 21 11:27 main.tpl-rw-rw-rw- 1 tony tony 1639 Mar 21 11:27 manageaddress.tpl-rw-rw-rw- 1 tony tony 1800 Mar 21 11:27 menu.tpl-rw-rw-rw- 1 tony tony 401 Mar 21 11:27 message.tpl-rw-rw-rw- 1 tony tony 93 Mar 21 11:27 startdrwxrwxrw- 2 tony tony 4096 Mar 21 11:27 subcontent-rw-rw-rw- 1 tony tony 1391 Mar 21 11:27 suplist.tpl-rw-rw-rw- 1 tony tony 1199 Mar 21 11:27 supplierauth.tpl-rw-rw-rw- 1 tony tony 295 Mar 21 11:27 table.tpl-rw-rw-rw- 1 tony tony 6198 Mar 21 11:27 testLeftNav.tpl-rw-rw-rw- 1 tony tony 1364 Mar 21 11:27 thickboxform.tplroot@debian-gnu-linux-12:/var/www/rfq-include#
To be able to see what was happing as the Apache user, I edited /etc/passwd so that I could su to user 'www-data'.
As user 'www-data' the file listings look like:
Code:
www-data@debian-gnu-linux-12:~/rfq-include$ ls -ld tpldrwxrwxrw- 3 tony tony 4096 Mar 21 11:27 tplwww-data@debian-gnu-linux-12:~/rfq-include$
Code:
www-data@debian-gnu-linux-12:~/rfq-include$ ls -l tplls: cannot access 'tpl/authsupplier.tpl': Permission deniedls: cannot access 'tpl/error.tpl': Permission deniedls: cannot access 'tpl/menu.tpl': Permission deniedls: cannot access 'tpl/footer.tpl': Permission deniedls: cannot access 'tpl/longform.tpl': Permission deniedls: cannot access 'tpl/thickboxform.tpl': Permission deniedls: cannot access 'tpl/message.tpl': Permission deniedls: cannot access 'tpl/start': Permission deniedls: cannot access 'tpl/suplist.tpl': Permission deniedls: cannot access 'tpl/billing.tpl': Permission deniedls: cannot access 'tpl/log.tpl': Permission deniedls: cannot access 'tpl/form.tpl': Permission deniedls: cannot access 'tpl/authsupplier (Jayden Spring'\''s conflicted copy 2014-06-16).tpl': Permission deniedls: cannot access 'tpl/header.tpl': Permission deniedls: cannot access 'tpl/table.tpl': Permission deniedls: cannot access 'tpl/main.tpl': Permission deniedls: cannot access 'tpl/testLeftNav.tpl': Permission deniedls: cannot access 'tpl/acceptedrfq.tpl': Permission deniedls: cannot access 'tpl/clientsupp.tpl': Permission deniedls: cannot access 'tpl/invites.tpl': Permission deniedls: cannot access 'tpl/manageaddress.tpl': Permission deniedls: cannot access 'tpl/longform1.tpl': Permission deniedls: cannot access 'tpl/subcontent': Permission deniedls: cannot access 'tpl/login.tpl': Permission deniedls: cannot access 'tpl/supplierauth.tpl': Permission deniedtotal 0-????????? ? ? ? ? ? acceptedrfq.tpl-????????? ? ? ? ? ? 'authsupplier (Jayden Spring'\''s conflicted copy 2014-06-16).tpl'-????????? ? ? ? ? ? authsupplier.tpl-????????? ? ? ? ? ? billing.tpl-????????? ? ? ? ? ? clientsupp.tpl-????????? ? ? ? ? ? error.tpl-????????? ? ? ? ? ? footer.tpl-????????? ? ? ? ? ? form.tpl-????????? ? ? ? ? ? header.tpl-????????? ? ? ? ? ? invites.tpl-????????? ? ? ? ? ? login.tpl-????????? ? ? ? ? ? log.tpl-????????? ? ? ? ? ? longform1.tpl-????????? ? ? ? ? ? longform.tpl-????????? ? ? ? ? ? main.tpl-????????? ? ? ? ? ? manageaddress.tpl-????????? ? ? ? ? ? menu.tpl-????????? ? ? ? ? ? message.tpl-????????? ? ? ? ? ? startd????????? ? ? ? ? ? subcontent-????????? ? ? ? ? ? suplist.tpl-????????? ? ? ? ? ? supplierauth.tpl-????????? ? ? ? ? ? table.tpl-????????? ? ? ? ? ? testLeftNav.tpl-????????? ? ? ? ? ? thickboxform.tplwww-data@debian-gnu-linux-12:~/rfq-include$
I am running:
Code:
Linux debian-gnu-linux-12 6.1.0-18-arm64 #1 SMP Debian 6.1.76-1 (2024-02-01) aarch64 GNU/Linux
Antony
Statistics: Posted by asharris — 2024-03-21 15:03 — Replies 0 — Views 16