User CHMOD Problem

Grave

New member
Joined
Jan 20, 2011
Messages
12
Whenever I create User,

It gives him root folder like
Code:
public_html/domain/usersite.com/public_html
instead of
Code:
home/user/publc_html

Am I doing something wrong...

AS due to code 1 ... I need to make my many folders to 777 chmod which is scary for Users... I need Urgent Help...
Thanks
 
If you make correction in httpd.conf for the specified vhost that will work. But there's no difference in both cases. It's insecure.

Use suPHP or mod_ruid2 instead, and no 777 will be ever needed.
 
than how can I make it secure.....

many users are already complaining about this..

can't they have access like this

Code:
home/user/public_html

thanks
 
I want Secure way, which denies getting access by other persons through any of their script to my server.
 
what to edit, and how to edit....

Can you give me any detail... Please Thanks
 
Whenever I create User,

It gives him root folder like
Code:
public_html/domain/usersite.com/public_html
instead of
Code:
home/user/publc_html

Am I doing something wrong...
I've never seen public_html/example.com/public_html.

I've seen /home/username/domains/example.com/public_html but I don't know if that's what you mean.

I also see /home/username/public_html, as a link to the above, but only for the main domain in the user's account.

DirectAdmin works this way because it allows multiple domains under the same user.

Jeff
 
Yes, I mean same

home/username/public_html/domains/usersite.com/public_html.


But whenever some 1 comes from different host with Cpanel..

he is experienced with

home/username/public_html

and all the folders and files are in 755 & 644 CHMOD.... but in direct Admin, due to additional two folder in between username & public_html has created huge massive problem to the user as now it asks to CHMOD the folder in 777 and files in 666 without which many settings and file doesn't work....
 
as now it asks to CHMOD the folder in 777 and files in 666 without which many settings and file doesn't work....
What asks to chmod the folder to 777 and files to 666? What doesn't work?

Jeff
 
Configuration File ./config.php Not Writable
Please CHMOD to 777.
Settings File ./settings.php Not Writable
Please CHMOD to 777.
File Uploads Directory ./uploads Not Writable
Please CHMOD to 777.
Avatar Uploads Directory ./uploads/avatars Not Writable
Please CHMOD to 777.
Language Files ./languages Not Writable
Please CHMOD to 777.
Backups Directory ./admin/backups Not Writable
Please CHMOD to 777.
Cache Directory ./cache Not Writable
Please CHMOD to 777.
Themes Directory ./cache/themes Not Writable
Please CHMOD to 777.
 
And what is telling you this? What are you running when you see this? Where are you seeing this?

Jeff
 
Whenever I change my settings it says permission not allowed and if i upload anything same error....
it gaves me error whenever i do certain things related with above...
 
One more try: What do you mean by it?

Without knowing from where you're getting the message I can't help you further, but perhaps someone else can.

Jeff
 
I mean, whenever I go to my admin panel of site and go to settings option to change some settings,...

than

Either settings that i have saved -> doesn't work in my site ...
and some times for some other settings it says permission not allowed
 
When I log into the DirectAdmin control panel for a user, and click on one of my domains (sites), there are no links called settings. So I still have no idea what you mean.

Can you give me a specific URL? I understand that it won't work for me because I'm not logged in as you, but it should give me an idea of where the problem lies.

Thanks.

Jeff
 
When I log into the DirectAdmin control panel for a user, and click on one of my domains (sites), there are no links called settings. So I still have no idea what you mean.

Can you give me a specific URL? I understand that it won't work for me because I'm not logged in as you, but it should give me an idea of where the problem lies.

Thanks.

Jeff

What do you understand by admin panel of site... huh.....

I have installed forum in my server now when I go to admin panel of my forum... and {not direct admin panel, I mean admin panel of my forum} ....

than there is setting option...

Still if you dont understand what I am talking about...

Please .. Please do not reply...
Thanks
 
Configuration File ./config.php Not Writable
Please CHMOD to 777.
Settings File ./settings.php Not Writable
Please CHMOD to 777.
File Uploads Directory ./uploads Not Writable
Please CHMOD to 777.
Avatar Uploads Directory ./uploads/avatars Not Writable
Please CHMOD to 777.
Language Files ./languages Not Writable
Please CHMOD to 777.
Backups Directory ./admin/backups Not Writable
Please CHMOD to 777.
Cache Directory ./cache Not Writable
Please CHMOD to 777.
Themes Directory ./cache/themes Not Writable
Please CHMOD to 777.

If so, why don't you login into your server's shell and do, what you're asked about?
 
If so, why don't you login into your server's shell and do, what you're asked about?

You are so smart, Do you have any such thing in your site too... can you do with your files and folders so that i can tell publish this in internet and few hackers can have chance to exploit your complete site... or root defacement...
I think you didn't read.. there is two files
1). Settings with chmod to 777
2).config with chmod to 777..

You have the smartest answer I have seeen in the earth. bingo Thanks but I am not going to do this...
******************************************************

Is there anyone else with few knowledge who can help me out how to solve, user level folder option ..

as in user level I have 2 additional folders which i was not having earlier in cpanel..
home/user/domain/site.com/public_html
domain&site.com are newfolders due to which it asking me to make settings as above.. and making settings as above is very risky, so if anyone can give me better way to deal with it..
Thanks
 
There were already suggested two ways to go:

1. Update permissions, or
2. Use suPHP or mod_ruid2.

If you do not like it. Nobody here will help you anymore, just because there's no any other solution, until you use your PHP scripts, which want to write into files. I don't know why your PHP scripts suggest chmoding config.php to 777, contact a developer team to learn details. There never has been any need to change permissions on domain and site.com. If you want to change permissions, change it only for specified in your error message directories.

P.S. If you want to hack me, I can give you a change. Will you try? Any way, your irony and sarcasm are unnecessary things here.

P.P.S. Read again http://www.directadmin.com/forum/showpost.php?p=195278&postcount=6
 
Last edited:
Still if you dont understand what I am talking about...

Please .. Please do not reply...
Thanks
Now I understand what you mean. I choose to reply because this forum should be helpful to everyone, and not just to you.

I don't recommend using 777 either, and it's probably not strictly necessary. I don't know what software you're using but I do know that many thousands of hosting clients have no problems with default settings as made by DirectAdmin. I'd suggest contacting support for, or a forum for, the software you're using, and discuss with them what custom permissions and/or ownership they recommend when hosted on DirectAdmin. (DirectAdmin has a large enough footprint in the hosting world that I'm sure you'll find other useers of the software who are running under DirectAdmin).

If you don't like the DirectAdmin default of allowing multiple domains under a single user (which is why the domains subdirectory, and then the various other domain subdirectories, are used), and you're never going to offer your clients the opportunity to have multiple domains, you can create a post-create shell to rework the directories for you upon user creation, so that the user's files are directly under public_html.

In fact, depending on your scripting skills, and/or whether or not you're willing to have someone else write the script for you, you can even create the script so it will do that if the particular account allows only one domain, but not if it allows more than one.

Jeff
 
Back
Top