Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-11-20 05:11:34

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

CHMOD permissions for directories and files

I need to know a detailed set of instructions for CHMOD permissions in textpattern files and directory.
Looking at antecedente forum messages, found by Google, I have realized there is not a satisfying explanation of this issue.
I’ve sat up perl scripts in my sites many times and always I found this kind of informations, but being not very used in setting up ‘php scripts’ I made all this, maybe, not in the just way.
Then now I need to get the right informations to prevent web-server could be attacked.
Can anyone help me?
Thanks

Last edited by Bongo-man (2010-11-20 05:12:03)

Offline

#2 2010-11-20 11:44:58

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: CHMOD permissions for directories and files

What I need to know is mostly if is there any problem, setting CHMOD 755 to every file and directory. I’m not a LINUX GURU, but I know this is not always the right thing.
which files/directory need 777 to prevent other users meet difficulties in answering posts and, if necessary, in posting their articles?

THANKS

p.s. I also need to know if the textpattern user must design his blog pages so that textpattern logo is showed online, and in such a case, which pages need to show that (home only, also others, everywhere).

Offline

#3 2010-11-20 12:29:01

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: CHMOD permissions for directories and files

Bongo-man wrote:

I need to know a detailed set of instructions for CHMOD permissions in textpattern files and directory.

  1. Install Txp as usual
  2. Check diagnostics (Admin sub-tab)
  3. If you see “file directory not writable” or “image directory not writable” then you need to change permissions on those directories only to allow admin users to add images and files (respective Content sub-tabs)
  4. Do not otherwise change permissions

Code is topiary

Offline

#4 2010-11-20 14:49:27

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: CHMOD permissions for directories and files

If setting permissions to 755 for directories and 644 for files isn’t sufficient and you’re on a shared webhost, then don’t consider changing permissions but change webhost instead.

Offline

#5 2010-11-20 17:42:47

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: CHMOD permissions for directories and files

ruud wrote:

If setting permissions to 755 for directories and 644 for files isn’t sufficient and you’re on a shared webhost, then don’t consider changing permissions but change webhost instead.

I’ve set 755 till now only the main directory and config files.
My site is in a shared hosting service that I cannot change (for various reasons).
Then you are saying I can set 755 for every directory and 644 for all files without meeting any kind of problem?

Offline

#6 2010-11-20 18:47:34

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: CHMOD permissions for directories and files

Bongo-man wrote:

I also need to know if the textpattern user must design his blog pages so that textpattern logo is showed online, and in such a case, which pages need to show that (home only, also others, everywhere).

No :) (license)

Offline

#7 2010-11-20 19:22:48

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: CHMOD permissions for directories and files

…but if you like, and find TXP useful, donations are always welcome ;-) I bet devs like kind words and coins.

Offline

#8 2010-11-21 13:57:03

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: CHMOD permissions for directories and files

Bongo-man wrote:

Then you are saying I can set 755 for every directory and 644 for all files without meeting any kind of problem?

Almost. I’m saying: if you set those permissions and it doesn’t work, then you have a problem that shouldn’t be fixed by using less strict permissions (because from a security point of view that’s suboptimal, to put it mildly). It all depends on how your webhost is set up. I’m on a shared webhost myself. I think I can even set 600 permissions for PHP files and 711 for directories without getting into trouble.

Offline

#9 2010-11-21 16:33:40

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: CHMOD permissions for directories and files

Ok, thank you. I will make some tests. Till now (about years of use, no problems).
Last days some problem on the shared web-server, so I’m wondering about everypossibile motivation, to get solution.

Anyway If problems occurr,
will they be displayed both in the admin diagnose interface, both with other user login problem, so that I will anyway able to realize the blog is in trouble?

.. or could also occur not evident problems, silent for a long interval of time?

Offline

#10 2010-11-21 16:58:16

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: CHMOD permissions for directories and files

Problems I’d expect to see due to too strict permissions are: not being able to
  • access the admin interface
  • upload images/files
  • view uploaded images/files

Offline

#11 2010-11-21 17:07:55

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: CHMOD permissions for directories and files

Gocom wrote:

…but if you like, and find TXP useful, donations are always welcome ;-) I bet devs like kind words and coins.

I too, but while money is not so frequent online and also we already spend lot of money for various other
services.. anyone of us can strongly promote what he better likes.

I think developers could decide if they prefer personal promotion, or for they work (textpattern).
Lastly after a long period of promotion of my work (web-site) I decided to start promoting also myself.
So if developers’ personal website was available I think almost anyone of us would promote it, in other case I thought it would not so strange to put some link to textpatter website.

Many web scripts developers compell web editors, using their tools, to show orrible logos. I like your logo, but also I cannot place it everywhere in my website; This was the reason of my question. :-)

Offline

#12 2010-11-21 17:09:54

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: CHMOD permissions for directories and files

ruud wrote:

Problems I’d expect to see due to too strict permissions are: not being able to

  • access the admin interface
  • upload images/files
  • view uploaded images/files

Thank you very much, now I am able to start upgrading and resetting chmod. :-)

Offline

Board footer

Powered by FluxBB