Chowned All Files To User Root Please Help

mohdyasar

Active Member
Jun 27, 2004
43
0
156
Dear All

I am not at all experience in Linux

I first run this command

chown -R myhb *
mybh is the username

then i realized i was changing permissions to user mybh i did control + C it stopped

then i did

chown -R root *

then after 5 - 10 secs i hit break again and then i realised i changed all files owner to root

is there a way i can undo it my mail and most of the stuff is giving trouble..

please help asap....

thanks
 

ujr

Well-Known Member
Mar 19, 2004
290
0
166
From which directory have you done this from? / ? or /home ? etc...

That'd be helpful to know.
 

mohdyasar

Active Member
Jun 27, 2004
43
0
156
i did it from /var/log
 

ujr

Well-Known Member
Mar 19, 2004
290
0
166
Ouch that's not good, although it could have been worse.

I would recommend that you get someone experienced to fix it. Not all files in that directory are owned by root. Some are owned by others such as mailnull, clanav, munin, lp, etc...
 

mohdyasar

Active Member
Jun 27, 2004
43
0
156
Can Someone Help Me With This Can I Take A Full Backup From Whm Script So That I Can Restore That On A New Server Or Some Other Solution...

Please Help I Am In Bad Situation...

Regards

M. Yasar
 

ujr

Well-Known Member
Mar 19, 2004
290
0
166
Try contacting Chirpy, AndyReed, or many of the others that provide this kind of service.

If you can't figure it out, then let me know.

You could backup and then restore all accounts to a new server, but afterall, this was only the logs directory. As I mentioned, it could have been worse.

In any case, the log files would need to be chowned correctly. I am not aware of any script that fixes that automatically.
 

mohdyasar

Active Member
Jun 27, 2004
43
0
156
yes but it did change permissions for home directories also... which i have changed back and exim failed so i managed to get the exim back also..

but i m still not able to send messages via smtp...
 

mohdyasar

Active Member
Jun 27, 2004
43
0
156
i changed exim permissions reinstalled it itw working now...

what i have done in uninstalled what i could and reinstalled lest see what happens ...

no i m cheking for my sql atleast if i have these running i can take a full backup and restore on another server ...

also i have another problem

i am trying to send a message from yahoo to my server it does not come in the users box but it goes to yahoo gmail and all other mail

can i see a log why it does not do that .. pls advise

thanks
 

ujr

Well-Known Member
Mar 19, 2004
290
0
166
did you change any other files?

As suggested before, you may want to have someone do this for you, and make sure that your box is 100% operational.

Perhaps also contact your DC, and see if they can do it. We occasionally have dedicated customers that do this, and it's not a fun thing to rectify. As you suggested, moving the accounts to a new server could be a good solution for you, depending on the extent of the problem.
 

ujr

Well-Known Member
Mar 19, 2004
290
0
166
mohdyasar said:
i changed exim permissions reinstalled it itw working now...

i am trying to send a message from yahoo to my server it does not come in the users box but it goes to yahoo gmail and all other mail

can i see a log why it does not do that .. pls advise

thanks

normally you can use:
tail -f /var/log/exim_mainlog
tail -f /var/log/exim_rejectlog

Since you chowned your logs make sure all exim_* files have the following perms:

mailnull mail

and that they are chomoded to 640
 

mohdyasar

Active Member
Jun 27, 2004
43
0
156
I have managed to get all services running after restarting them except SSHD which my DC is lookin into,

But i have a problem of one email being discarded from our server i have checked the exim_rejectlog, no luck it does not show me there any ideas where i can see it... please advise ...

regards

m.y
 

ujr

Well-Known Member
Mar 19, 2004
290
0
166
there could be a few issues:

Assuming the user exists on your domain, that your DNS and MX records are correct:

1. it's being queued on the sending server for later delivery
2. your server can not be resolved, by the sending server
3. your server is blocking or not allowing the sending server to connect to yours

...etc.

Perhaps:
1. the mail is being tagged as spam and purged?
2. the mail is in your email queue?

You can normally see this type of stuff in the exim_mainlog