chown home dirs

Bullcat

Verified User
Joined
Feb 18, 2006
Messages
29
Location
Netherlands / Haarlem
Hello,

After a serieus crash last night i getting back everything from a backup, but now all the user dir's a mixed up the owner is the wrong one.

How can i fixed this ?

will the next script do my job , and set al back to the owner of that dir ? it is the same name as the directroy name.

for i in 'ls'; chown -R $i:$i $i; done;

Regards
hans
 
Yes, you can do that in your home directory, but you should run these commands after "for i in 'ls'; chown -R $i:$i $i; done;":

Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
 
okay , the option set_permissions.sh is exact the thing i need.

Now i need a tool that wil restore the password files for exim and proftpd , becourse i dont backup those ( now i will ofcourse )

Any a idee to fix that ?

Regards,
Hans
 
Back
Top