changing default user folder

itman21

Verified User
Joined
Jan 3, 2004
Messages
24
Location
Korea
Hi, Anybody done changing DA's default user folder to another location ? I believe it is now

/home/user_folder

For example to another location like :

/home/tomcat4/webapps/folder/users/user_folder

I am trying to use DA with a Java Application that sits inside /home/tomcat4/webapps/application/

Any feedback would be appreciated.

Sun Joo
 
You would have to chnage the paths in the users httpd.conf

Chris
 
Thanks :) for your advice. Is it just like that ? I mean is that all I need to change ? Then, all user folders are created at
/home/tomcat4/webapps/application/users/user1, user2, usern, etc. ??

Also, I would not have problems with common requirements such as cgi, php, perl, etc. supports ?

Cheers,

Sun Joo
 
Hello,

Actually, it's quite easy to change where RedHat puts the users when they're created. Just edit

/etc/defaults/useradd

and change HOME= to

HOME=/home/tomcat4/webapps/application/users

Then all users you create will (should) be created there. There is no hardcoded reference to /home/username, and DA always asks the system where the home directory is. No modifications to any other files would be required.

John
 
Thank you John. I tried it and it worked just beautiful ! Trust this new folder is compatible with all DA functions, without causing problems ???

Thanks again and others I requested are all working fine now. Thanks again.
 
Hello,

DirectAdmin retrieves the home path from the system and doesn't *assume* that it's in /home, although it is in the /home path 98% of the time :) . I can't forsee anything that wont work at the moment, you can just test it out if you want to be sure.

John
 
this gets me thinking about another possibility, if I were to add an additional hard drive and mount the entire harddrive as say "/home2" and change useradd like you said to use /home2, this would enable new users to be created on the new hard drive is that correct? And apache / vhosts would just automatically know that they should go to /home2 instead of /home right?
 
admin folder issue

Hi John, Thanks for the help always.

During DA installation, I used default folder /home/admin

But later I changed default folder as in above note. Now, I wonder if you could advice me on how :

1) can I change admin folder to /home/tomcat/webapps/.. from /home/admin ? It seems it will not do it even if I changed hpttd.conf mannually.

2) change default folder, for example "user6" account.
a) from :
/home/tomcat/webapps/xelpa/users/user6/domains/user6.broadbandcms.com/public_html

b) to: /home/tomcat/webapps/xelpa/users/user6

My feeling is not easy and perhaps will affect other settings as well....

Thanks.

Sun Joo
 
Hello,

1) make sure the home paths have been correctly updated in the /etc/passwd file. (I think you've done that) If not, use the "usermod -d /new/path/to/home username" command.

2) run:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
John
 
Thanks... I typed it and it just returned the next command prompt..

I think I should get some kind of option to change the folder path value ??

1) is okay as per your instruction

2) still not clear.

Cheers

Sun Joo
 
Hello,

#2 just adds one line to the task.queue file. It won't give you any output and will just return to the command prompt like you said. Every minute, the dataskq program runs, check that file for contents, and if there is something in it, it will run it. The command just rewrites httpd.conf files.. nothing more. I'm assuming you've changed the home directory for some users, so the rewrite will redirect the public_html folder to the new location automatically.

John
 
I used this method to add a new user on another hd but now I have a problem. DA no longer sends my welcome emails with connection info, and I can not connect to the new user webspace using the

http://ipaddress/~uname method. This still works for the accounts on the other hd.

Actually logging onto the user from the ACP produces errors when trying to do anything as well. Things like you do not own that domain etc etc.

Fedora core 1 on this box.

--Thanks for any help
 
Last edited:
i have similar issue but in my server DH-f show

/dev/mapper/cl-root 46G 46G 604K 100% / how can i change to use


/dev/mapper/cl-home 241G 1.8G 240G 1% /home
 
pls either help or do not spam forum
You spam yourself. You irritate helpers if you up ancient post, especially from almost 2 decades ago. So more chance you won't get help by doing this.
Lot of things can be changed in that time.
So please use a forum as it's intended to be, or take the risk to get your issue ignored.
 
Back
Top