Announcement

#1 2021-01-16 23:17:04

eharris
Member
2021-01-16
2

Admin, and file permission problems

Hello/Hi/Greetings,

I am having a couple of problems.

1) When I attempt to access the admin using URL:
http://myDomainName/piwigo/admin
or http://myDomainName/piwigo/admin/index.php

. . .the URL redirects to the photo gallery, every time. I have tried different browsers, but they all redirect to the gallery rather than giving access to the admin. How can I then access the admin?

2) All files contained within the _data directory, in addition to the sub-directories and the files they contain, all the the Ower/Group showing as nobody! Therefor I can not change the file permissions as needed. In fact I can not even delete any of the files or directories in the _data folder to do a re-install.

I have no idea how they all got Owner/Group as nobody, but now what can I do??

Offline

 

#2 2021-01-17 00:24:46

executive
Member
2017-08-16
1214

Re: Admin, and file permission problems

the correct URL is piwigo/admin.php

Last edited by executive (2021-01-17 00:25:10)

Offline

 

#3 2021-01-17 03:38:51

erAck
Only trying to help
2015-09-06
2027

Re: Admin, and file permission problems

2) Most likely the web server is running as effective user (and group) nobody instead of a dedicated user (e.g. www-data) and a group of the real owner's account (or some other constellation or ACLs that suits the hoster's setup and gives the account owner control). Some may claim it would be "for security purposes" but it is rather a misconfiguration and even may be dangerous if more than one services run as nobody; a service that creates files should not run as nobody at all. It might also be that a NFS tree export has no or a broken user/id mapping in which case all files are owned by nobody (and a web server running as nobody would be even worse then). Talk to your hosting provider. As is, only root could change file permissions, but that alone would be fiddling with a symptom instead of curing the cause.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact