Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member danimal's Avatar
    Join Date
    Jul 2003
    Posts
    79

    Default Question about adding/removing email accounts and losing passwd, quota and shadow

    Hiya!

    I just noticed a weird problem with email accounts and passwd, quota, and shadow files. I upgraded to the latest Stable (R53) today. One of my hosted clients (acct=myclient, domain=myclient.com) complained that when they deleted an email account, suddenly no one could access their email. I checked the logs and found out that when they deleted the email account, it caused the files in:
    /home/myclient/etc/ to be removed. Specifically, passwd, quota and shadow. The files are still in: /home/myclient/etc/myclient.com/ though. I know that they are hard-linked together with the same inode, but something about the code to delete (and as I later discovered, add) an email account causes these three files to disappear.

    Normally, I wouldn't mind... and perhaps it's as it should be (i.e. only files in /home/myclient/etc/myclient.com/), but cpanelpop for email accounts with the myclient account are trying to match username/password values with /etc/shadow or /home/myclient/etc/shadow and now that totally fails.

    Is there any way to fix this? For now, I re-established the hard links, but I tested it and as soon as my client needs to either add an email account or remove an email account, it'll remove these three files again.

    The problem is less that the three files are being deleted and more that cpanelpop is trying to look up user info from /home/myclient/etc/ rather than /home/myclient/etc/myclient.com/

    If I could understand how to have cpanelpop look up user info in the right place, then I wouldn't care of these three files are getting removed.

    Ideas anyone?

    Thanks!

    -Danimal

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You're probably better off restoring the account from backups if you have them. Was the cPanel account near or over their disk quota at the time they deleted the POP account? If so, I woul guess that that could have caused the problems.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. wrong shadow and passwd files in /home/*/etc/
    By equens in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-27-2008, 03:55 PM
  2. shadow@ email accounts & forwarders not allowed?
    By jenlepp in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-16-2007, 11:19 AM
  3. Question about adding accounts
    By harisk73 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-07-2007, 08:33 AM
  4. Removing email accounts, users can't connect with outlook
    By AlexPaes in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-23-2006, 07:02 AM
  5. band.quota ptroblems for adding accounts
    By net4me in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-08-2002, 04:55 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube