The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Chowned All Files To User Root Please Help

Discussion in 'General Discussion' started by mohdyasar, Sep 12, 2006.

  1. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  2. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    From which directory have you done this from? / ? or /home ? etc...

    That'd be helpful to know.
     
  3. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    i did it from /var/log
     
  4. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    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...
     
  5. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  6. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  7. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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...
     
  8. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  9. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  10. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16

    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
     
  11. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  12. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    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
     
Loading...

Share This Page