Securing Files

I run this command on terminal as root user ( sudo -i)

chmod 644 /openemr/library/sqlconf.php

And I get the following message:

chmod: cannot access ‘/root/openemr/library/sqlconf.php’: No such file or directory

hi @gstamata, the file should be under your webroot, ie /var/www/html/openemr/library/sqlconf.php

hello @stephenwaite ,yes it is there.

that’s an odd path with the / in front of it. per @stephenwaite , should do:
chmod 644 /var/www/html/openemr/library/sqlconf.php

Yes , this worked @brady.miller !
Thank you all.

1 Like