1

kind of a newbie to server stuff.

I am running a centOS setup with whoosh search engine for my django app. Everytime I restart or rebuild my index i get a warning that states IOError: The path to your Whoosh index '/www/test/mysite_index' is not writable for the current user/group.

How do I make sure this folder stays permanently CHMOD'd

Thanks

ApPeL
  • 141
  • 4

2 Answers2

2

Chmod is already permanent.
The fact that the permissions change means that another process or user changes the permissions back behind your back.

Beside that, it's probably a better idea to use the chown command to change the owner of the folder.

Kenny Rasschaert
  • 9,045
  • 3
  • 42
  • 58
2

There could be a few options: Try looking at the umask for the user/process that creates the file.

You also want to look at the group owner of the file and the processes that are trying to read it , should they be in the same group ?

Failing that then look at adding a chmod command to a script just after the file is created as part of its creation script.

user9517
  • 115,471
  • 20
  • 215
  • 297
AndyM
  • 948
  • 2
  • 16
  • 26