Regenerate user home

LionRock

Verified User
Joined
Mar 30, 2007
Messages
95
Hi,

is somehow possible that I can regenerate users home files ? public_html dir etc.

One user has deleted all files thru fileadmin and now I must regnerate all folders for home :( I hope there is some kind of skeleton dir which one could be just copied to users home dir ?

Regards
 
Hello,

Nothing automated.. you could just type (as root) where username is the name of the user in question and domain.com is his domain:
Code:
cd /home
mkdir -p [b]username[/b]/domains/[b]domain.com[/b]/public_html
mkdir -p [b]username[/b]/domains/[b]domain.com[/b]/private_html
chown -R [b]username[/b]:[b]username[/b] [b]username[/b]
There may be other things like ~/mail, ~/imap, ~/user_backups, etc, but those 2 should get you going again.

John
 
Back
Top