File Manager permission problems.

Jono

New member
Joined
Feb 11, 2012
Messages
15
I am trying to use the file manager within DirectAdmin but whenever I try to create files/folders I receive the following:

Code:
An error occurred while attempting to create the directory.

Details: Parent directory does not allow write, or one of the directories didn't allow
search (execution) permission.

Can anybody point me in the right direction please?

Thank you.
 
Hello,

Do you have root access to your server with directadmin, or you buy hosting with directadmin? If the second you should ask you hosting company for a help. If the first then show:

Code:
ls -la /home/<username>/domains/<domain.com>/public_html/
Code:
ls -ld /home/<username>/domains/<domain.com>/public_html/
Code:
ls -ld /home/<username>/domains/<domain.com>/

or full path to whatever else directory in which you try to create files.
 
Hi Alex,

Thanks for the reply.

The problem I am having is files/folders created via a script have the ownership 'apache'. How can I ensure that files/folders created in the future use a normal user account and not the 'apache' account?

Thanks again.
 
You need to use php-cgi or (i use to prefer) mod_ruid2 with apache.

Regards

Thanks Andrea,

As a DirectAdmin and indeed a Linux newbie, it's off to Google for me! Thanks for pointing me in the right direction.
 
If interested, me, Zeiter and Jeff (and some others) use to offer commercial service for those kind of stuffs :)

If interested, just send a pm/email to me or whoever you want for a quote.

Regards
 
If interested, me, Zeiter and Jeff (and some others) use to offer commercial service for those kind of stuffs :)

If interested, just send a pm/email to me or whoever you want for a quote.

Regards

Thanks for the offer, it's appreciated. I have a backup of the server so initially I'm going to try to read up and learn how to correct the problem myself (although it's not just installing and configuring mod_ruid2 that's the problem, it's changing all 777 folders to 755 permission and change all 777 php scripts to 644 permission - at least I think that has to be carried out too!)

Cheers.
 
Search this forum for mod_ruid2, there is a nice how-to with the commands to change file and folder permissions aswell.

Regards
 
Search this forum for mod_ruid2, there is a nice how-to with the commands to change file and folder permissions aswell.

Regards

Found it, thanks. It looked straight forward enough, until I tried entering the first command! I am running Ubuntu, and 'yum' isn't working - just reading up on a work around. Told you it was all new to me!

Thanks again.
 
The How-To works fine. We use it on all new installs. Ubuntu is Debian-based, and uses apt-get. Some of the package names may be different.

Jeff
 
The How-To works fine. We use it on all new installs. Ubuntu is Debian-based, and uses apt-get. Some of the package names may be different.

Jeff

Thanks Jeff,

Any specifics related to Ubuntu you could help with? I'm currently as far as: sudo apt-get install libpcap-dev :o

BUT I have learned much from reading through the last hour or so.

Thanks.
 
Sorry for not posting any feedback yet - trying to sort the permission problems broke my VPS. I knew I had a backup however (on the host's backup server) and went about restoring, but no luck. I contacted them to be told:

"What was installed on your VPS. It looks like the backup you did not save on the backup server due to the backup server being full."

Obviously there were then tickets back and forth with me wanting to know why I wasn't told when I carried out the backup that there was problems, ans why didn't THEY know etc, but non the less, I have to start from scratch. This is even more annoying as I had paid somebody to setup and 'harden' my server for me (it's unmanaged).

Lesson learned, make my own backups!

So, this original problem won't bother me for a while - I have to save up to get my server setup again.

Thanks for all your help and feedback though..
 
Back
Top