Jump to content

Write permissions 777 vs. "recursively?" What's that chmod?


Recommended Posts

So, I chmodded the following to 777:

/config
/tools/smarty/compile
/sitemap.xml

What am I supposed to do with these?

Write permissions on folders and subfolders/recursively:
/img
/mails
/modules
/themes/prestashop/lang
/translations
/upload
/download

I have no idea what "recursively" means. Fetch doesn't give such an option as far as I can tell.

Link to comment
Share on other sites

Wow, this is a big problem.

Macs don't have any FTP software with recursive permissions writing. I just checked. SmartFTP is the gold standard for this sort of thing and it's only for Windows.

So, you're leaving out a big chunk of the "market" here, aren't you? I have to open every single folder and file within these folders and set their permissions to 777? Seems that could be done for me prior to installation. I've never used another anything that required this sort of permissions rewriting.

Link to comment
Share on other sites

Doesn't Firefox run on the Mac then? Fireftp is a full featured ftp add-on if your hosting requires you to change all the permissions.

Cross-platform: Works on Windows, Mac OS X, Linux
Advanced properties (CHMOD, recursive CHMOD, thumbnails)

Link to comment
Share on other sites

Doesn't Firefox run on the Mac then? Fireftp is a full featured ftp add-on if your hosting requires you to change all the permissions.


I never heard of Fireftp, but even if I did I probably wouldn't believe it was better than Fetch... so thanks for letting me know! I was just about to try Magento, but I'll reinstall PrestaShop and give it another shot first with Fireftp since people seem to love it.

EDIT: see below...
Link to comment
Share on other sites

Yes you would need to install Firefox :-)


You're very humorous. I downloaded the .xpi and was like "wtf is this?" I stopped using Firefox last summer when it was royally f'ed up. Seems they've fixed the bugs again.
Link to comment
Share on other sites

So, I hate to be a pain, but I'm now about to attempt the recursive permissions using FireFTP. Do I click SUID, SGID and Sticky? That gives me a chmod of 7777 according to FireFTP which is, according to everyone online, a completely stupid thing to do since it gives everyone access to everything.

Link to comment
Share on other sites

I would just click on the properties of the directory and tick read write and execute. ie 0777. SUID and SGID give your user / group permissions to the directory and Sticky just keeps it in memory No need to set this bit and give your user or group permissions to everyone although 777 probably amounts to pretty much the same thing.

Ideally you want to leave them at 0755 (read and execute for all, but not write for anyone but yourself). However, depending on your server setup that may not be enough to install whatever it was. If you do have to change permissions to 0777 then you should of course change them back to 0755 straightaway afterwards.

Magento has the same issue.

Link to comment
Share on other sites

Thanks, I guess I don't get this "recursive" stuff. Recursive means that all the files and directories inside also have their permissions written, right?

When I chmod a directory 777 and open it up, the files inside are not 777, so to me that suggests that 777 does not recursively write permissions. The installation instructions specifically say to set permissions for various directories recursively to be writeable.

Link to comment
Share on other sites

It sets directory permissions recursively but you haven't specified your file permissions so it does not set those. Anyway you don't need to do you? I would have thought file permissions could remain at 0644?

Sorry I forget what the instructions are as I never change permissions when upgrading or installing.

Link to comment
Share on other sites

Well, I don't know. I ran into a problem the first time just making them 777 and hoping it would work. I was hoping FireFTP would have a checkbox that said "recursively" or something so I could be more sure of what I was doing and what the problem is.

Link to comment
Share on other sites

OMG, thank you so much! I saw that, but it didn't even register. I was clicking command+P thinking I was a smarty for learning the key command right away. Command+P doesn't include contained folders. So, that's probably what my problem was. Thank you thank you thank you.

Link to comment
Share on other sites

  • 4 weeks later...
It sets directory permissions recursively but you haven't specified your file permissions so it does not set those. Anyway you don't need to do you? I would have thought file permissions could remain at 0644?

Sorry I forget what the instructions are as I never change permissions when upgrading or installing.


Do you ever have any problems with not changing the permissions?
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...