Forums / General Questions / Please tell me there is an easier way...

Please tell me there is an easier way...

Views: 1,252

Results 1 to 11 of 11
31 Jan 2011, 1:58 PM
#1
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Please tell me there is an easier way...

Is there a quick and easy way to quickly verify the permissions on files and folders, without using an FTP program to go through and examine each directory and file? :bigups:

31 Jan 2011, 3:00 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Please tell me there is an easier way...

Yes. Run a shell script on the site to recursively set all file and director permissions and then tweak the two configure files to their tighter settings.

If you don't have shell access to your server. Ask your webhost (nicely) if they'll do it for you.

FileZilla will do this for you too, but it sends each command separately, which is painfully slow given the number of times it needs to do so.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

31 Jan 2011, 3:23 PM
#3
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: Please tell me there is an easier way...

I don't know what a shell script is, but I do use FileZilla, so how do you do that?

31 Jan 2011, 3:37 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Please tell me there is an easier way...

Right click on a folder, set the permissions you need, check the "Recurse into subdirectories" checkbox and select the apply to directories only radio button.

When that's finished, right click on a file, set your file permissions, check the "recurse" box and select apply to files only.

When that's done, go and reset your two configure.php files to have permissions "444".

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

31 Jan 2011, 4:04 PM
#5
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: Please tell me there is an easier way...

I should set all the folders to 755, and all files to 644 right? Set the two configure.php files to 444, and weren't there some other pages that were recommended to have only read access?

31 Jan 2011, 5:27 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Please tell me there is an easier way...

What you should set the permissions to will depend on your server operating system, and the security protocols in operation there. That's down to your web host to explain.

You're right about there being some other folders that need different permissions. You can get more information about this from this FAQ Entry.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

1 Feb 2011, 2:44 PM
#7
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: Please tell me there is an easier way...

Thank you!

2 Feb 2011, 3:17 AM
#8
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Please tell me there is an easier way...

I did this this morning!!

You can do this in one step by going to the root of your site and if, for examplem, the root of your site is Public_HTML for example, right click on that and set the file permission you want check the "Recurse into subdirectories" box and select the apply to directories only radio button.

When that's finished, do the same thing again only check the "recurse" box and select apply to files only.

Cheers,

Maxy

Mitch B
www.lovetovape.com.au
love the Zen-Cart forums!!!

5 Feb 2011, 3:22 PM
#9
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: Please tell me there is an easier way...

I've noticed that Filezilla AND WinSCP both have an issue changing anything below 644 on my site. Is that an issue with the applications (both of them) or is my hosting provider preventing outside applications from changing permissions below 644? I did the recursive step on my public_html folder and it changed anything above 644 down to 644, I did the same thing for the folders (down to 755), and then had to go to my hosts file manager to change the configuration files down to 444, as Filezilla and WinSCP couldn't alter them. Wierd.

Any thoughts or ideas?

7 Feb 2011, 9:26 AM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Please tell me there is an easier way...

I use both FileZilla and WinSCP and have never noticed this on either of them. Sounds as though your server security is configured to prevent these changes (or prevent them through FTP at least). That would be one to discuss with your webhost.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

8 Feb 2011, 3:28 AM
#11
adiamond avatar

adiamond

New Zenner

Join Date:
Jan 2011
Posts:
58
Plugin Contributions:
0

Re: Please tell me there is an easier way...

I see, looks like I'll be having a little chat with them, thanks!