Major stupidity: Chown -R someuser /

NME

New member
Joined
Nov 7, 2008
Messages
4
First I laughed at my stupidity. I'm not laughing anymore.

I logged in as root (shoot me) I wanted to execute the command
Code:
chown -R someuser /home/someuser
Instead i pressed ENTER after the first /

So all files on my system are now owned by someuser. I chowned them all to root first.

Trying to get some stuff working again, before I do a complete reinstall tomorrow.

DA/Apache/MySQL all seem to be fixed.


Can't seem to get mail to work.

I run Dovecot and Exim on centos 5 with DirectAdmin 1.32.3

Is there a list of files that should be owned by specific users for DirectAdmin/dovecot/exim?

Some suggestions or some advice would be very welcome.


Thanks in advance.

Best Regards,

NME
 
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
 
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all

Thanks!!! DA is brilliant. Should have known that.

Mail doesn't give the errors it gave before, but I'm not receiving any e-mail. And sent e-mail are not received elsewhere. They just seem to disappear.
 
Last edited:
Exactly. Need to reinstall anyway. Just want to try to get e-mail working before I do so.

Not experiencing any problems anymore, except for e-mail.

Exim logs say this:

appendfile transport process returned non-zero status 0x0100: exit code 1
unable to set gid=12 or uid=503 (euid=8): local delivery to...
failed to read delivery status for [email protected] from delivery subprocess
 
I think so. Someone installed this server for me with Dovecot and Exim. Both are running.

Anyway, just ran the exim.sh script from the DA scripts dir and that fixed it. E-mail seems to work. Everything seems to work.

Probably will find new errors in the next couple of days. If so, i'll reinstall.

Thanks guys.
 
Back
Top