fixing some permissions
data_dir working on ubuntu-10.04