Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : File permssions



Threaded Mode | Print  

 File permssions, Change permissions (3 Replies, Read 5340 times)
Trax
Group: Member
Post Group: Newbie
Posts: 41
Status:
Has a root user, i want to make a slight change to a scripts file and stop any user of the script from making any changes to the file.

So is it possible to automatically change the permissions of a single php file?

-----------------------
:D
IP: --   

File permssions
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

You can do the same using our utility post_install hook. You can refer to our guide here:
http://www.softaculous.com/docs/Hooks#post_install

Hope this helps.
IP: --   

File permssions
Trax
Group: Member
Post Group: Newbie
Posts: 41
Status:
Hi

So how would i tell softaculous when its installing/installed a script to chmod a certain file to 0444?

-----------------------
:D
IP: --   

File permssions
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

This hook is called by Softaculous at the end of the installation of a script and will do the changes as written by you in the hook.

You can use the PHP code to change the permissions. The path to the installation is in the following variable :
$installation[0]['softpath']
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 24, 2024, 11:02 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.137