Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: Painkiller88 on March 06, 2021, 04:16:36 PM

Title: File System Lock not working
Post by: Painkiller88 on March 06, 2021, 04:16:36 PM
Hi,

I recorgnized that the File System Lock is only working on the public_html folder of the main accounts domain.

If a User has more domains they are still unlocked.

eg:

Main Domain main.com -> there is the public_html folder, and it gets locked

All other domains which are in a seperate folder for each domain, they doesn't get locked.

So the File System Lock is not working properly in my opinion because only 1 Domain of many gets locked

Title: Re: File System Lock not working
Post by: Painkiller88 on March 09, 2021, 10:14:16 AM
No one else recorgnized this?
Title: Re: File System Lock not working
Post by: Igor S. on March 10, 2021, 07:48:39 AM
You can use bash commands:
The command below will lock required folder:
Code: [Select]
chattr -R +i /path/to/the/folderThe command below will unlock required folder:
Code: [Select]
chattr -R -i /path/to/the/folder
Unfortunately, user's home folders have some directories which must not be locked and this one the feature locking the public_html only.
Title: Re: File System Lock not working
Post by: Painkiller88 on March 10, 2021, 04:46:18 PM
ok thanks for the reply.

 :)
Title: Re: File System Lock not working
Post by: Igor S. on March 14, 2021, 05:26:15 PM
welcome :)