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 :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 11:16 Go to next message
JeanAbouSamra is currently offline  JeanAbouSamra   France
Messages: 7
Registered: July 2021
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 14:28 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3771
Registered: December 2004
Karma: 27
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 05:24 Go to previous message
JeanAbouSamra is currently offline  JeanAbouSamra   France
Messages: 7
Registered: July 2021
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Ok, will do. Thanks.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Fri Jan 28 01:08:32 EST 2022

Total time taken to generate the page: 0.00776 seconds