FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Unlocking then locking files results in wrong permissions
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Unlocking then locking files results in wrong permissions [message #188168] Mon, 16 August 2021 15:16 Go to next message
JeanAbouSamra is currently offline  JeanAbouSamra   France
Messages: 7
Registered: July 2021
Karma: 0
Junior Member
Hello,

Attempting to understand the structure of the Admin
Control Panel, I tried the "Lock/Unlock Forum Files"
tab, and unlocked the files. Then, realizing it was
not what I wanted, I re-locked them.

The problem is that after this operation, all of the
forum's theming was lost. The images were gone, and
(after clearing my browser's cache) there was no styling
at all, leaving with only plain text and hyperlinks.

Playing with the file explorer, I find that the following
sets of permissions are applied:


            Unlocked   Locked
            ________   ______
Directory |    755       711
File      |    644       600
This table differs from what is documented at
http://cvs.prohost.org/index.php?title=Lock/Unlock_Forum_Files
In particular, the world has no permissions permissions
at all on files when they are locked.

Is this expected? Any workaround?

Thanks in advance,
Jean Abou Samra
Re: Unlocking then locking files results in wrong permissions [message #188169 is a reply to message #188168] Mon, 16 August 2021 18:28 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
It seems that different web servers expect different permissions, and FUDforum's one size fits all approach is not always working.
On the positive side, noting will be lost, just inaccessible, until you reinstate the correct permissions.

On the command prompt -
find /var/www/html/forum -type d -print0 | xargs -0 chmod 755 
find /var/www/html/forum -type f -print0 | xargs -0 chmod 644
Re: Unlocking then locking files results in wrong permissions [message #188171 is a reply to message #188169] Tue, 17 August 2021 09:24 Go to previous message
JeanAbouSamra is currently offline  JeanAbouSamra   France
Messages: 7
Registered: July 2021
Karma: 0
Junior Member
Ok, will do. Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Invalid email headers
Next Topic: SQL errors when fetching mailing list messages
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 11:16:49 GMT 2024

Total time taken to generate the page: 0.03216 seconds