HobbyMekanik Posted April 26, 2018 Share Posted April 26, 2018 How to change user permissions for /includes/configure.php? I use Transmit as ftp-client. When I get info for configure.php direct from the server in Transmit I am able to check and uncheck the boxes for User, Group, World. But when unchecking the box for User and Write from 644 to 444 and saving, nothing has changed when I open the file again from the server with transmit. So how do I change permission so that Write is not possible for User (444)? Thanks! /Anders Link to comment Share on other sites More sharing options...
ArtcoInc Posted April 26, 2018 Share Posted April 26, 2018 @HobbyMekanik Do you have access to cPanel through your host? Link to comment Share on other sites More sharing options...
HobbyMekanik Posted April 26, 2018 Author Share Posted April 26, 2018 18 minutes ago, ArtcoInc said: @HobbyMekanik Do you have access to cPanel through your host? As in control panel? Yes som sort of control panel. What should I look for? Link to comment Share on other sites More sharing options...
ArtcoInc Posted April 26, 2018 Share Posted April 26, 2018 @HobbyMekanik Most control panels have a place where you can set or adjust file permissions. Look around and see what's available. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted April 26, 2018 Share Posted April 26, 2018 Find file manager in your cpanel and use that. Its always best to set premisions using cpanel   Link to comment Share on other sites More sharing options...
MrPhil Posted April 26, 2018 Share Posted April 26, 2018 Most servers no longer allow FTP clients to change permissions on files and directories. It's not clear to me if you are changing on the server or on your PC. Anyway, all hosts provide some sort of "File Manager" in their "control panel" (not necessarily cPanel, which is a particular brand of control panel). A File Manager will list files, and provide a way to change permissions. Note that you may be required to check/uncheck boxes; overwriting numbers may have no lasting effect. I happen to use cPanel, where I right-click on a file name and choose "Permissions" from the pop-up menu. Note that making a file "read-only" (typically 444) will prevent you from uploading (overwriting) to it, and will prevent you from editing from your File Manager. You need to first change it back to writable by the owner (typically 644). Your host's technical support should be able to tell you exactly how to do these things if you can't figure it out yourself with a little exploring. Link to comment Share on other sites More sharing options...
HobbyMekanik Posted April 26, 2018 Author Share Posted April 26, 2018 24 minutes ago, ArtcoInc said: @HobbyMekanik Most control panels have a place where you can set or adjust file permissions. Look around and see what's available. Used this tutorial http://one-docs.com/guides/en/change-file-permissions/ But with no emediate luck. When I run the file I got a message that permission was set to 0444, but still osCommerce warn me about the safety issu and that writing to config.php still is possible. Checking the permissions from Transmit, it shows 644. Link to comment Share on other sites More sharing options...
HobbyMekanik Posted April 26, 2018 Author Share Posted April 26, 2018 Also the feedback on that tutorial shows 6 no and not one yes... Need to find another solution. Link to comment Share on other sites More sharing options...
HobbyMekanik Posted April 26, 2018 Author Share Posted April 26, 2018 Tried to change permissions with Transmit locally on my computer, with success. But when uploaded to the server permissions are changed back again from 444 to 644 :-/ Link to comment Share on other sites More sharing options...
♥JcMagpie Posted April 26, 2018 Share Posted April 26, 2018 If you are unable to change the permissions in your control panel contact your hosting company as you may not have the right permissions to allow you to make the change.  Link to comment Share on other sites More sharing options...
HobbyMekanik Posted April 26, 2018 Author Share Posted April 26, 2018 3 minutes ago, justcatering said: If you are unable to change the permissions in your control panel contact your hosting company as you may not have the right permissions to allow you to make the change. I´m talking with the support right now, but now I'm in doubt if I should change the permissions for configure.php to read only. Link to comment Share on other sites More sharing options...
HobbyMekanik Posted April 26, 2018 Author Share Posted April 26, 2018 A technican at the web hosting company had to change the permissions for configure.php. It was just not possible for me to do... Link to comment Share on other sites More sharing options...
ArtcoInc Posted April 26, 2018 Share Posted April 26, 2018 @HobbyMekanik So, everything is ok now? Link to comment Share on other sites More sharing options...
HobbyMekanik Posted April 26, 2018 Author Share Posted April 26, 2018 17 minutes ago, ArtcoInc said: @HobbyMekanik So, everything is ok now? Yes, I surley hope so :-) Link to comment Share on other sites More sharing options...
HobbyMekanik Posted April 26, 2018 Author Share Posted April 26, 2018 Thanks everyone for your replys and help! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.