Newb - why doesn't CHMOD 755 make file/folder writeable?

I'm running Debian 6 and have followed the Linode LAMP guide but somehow when trying to install my web shopping cart software it says certain files/directories are not writeable and only respond to chmod 777 files while 755 doesn't seem to allow write.

Anyone know what I can do to avoid having to have any files chmod 777? Thanks!

4 Replies

Are we supposed to guess which web shopping cart app you're using?

@vonskippy:

Are we supposed to guess which web shopping cart app you're using?

Sorry about that, it's OPENCART that I'm using.

The octal digit 5 only grants read and execute permissions, not write permission. It seems clear that your web application is not running as the same user who owns the file in question. If the web application user is a member of the file's group, then you can enable write access with mode 775.

hi Vance, that makes so much sense. Thanks for the tip, I tried that and it works for the critical files I don't want to set as 777. Excellent!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct