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.

Syncronizing FTP Passwords?

Discussion in 'General Discussion' started by Jeff75, Aug 1, 2003.

  1. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Is there anyway that a script can be ran via crontab that will syncronize clients' FTP passwords so when they change them in cPanel, it will update automatically? It is ridiculous that the only way it can currently be syncronized is to log into WHM and click the "Syncronize FTP Passwords" link.

    cPanel.net Support Ticket Number:
     
  2. NetX

    NetX Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    Add to your crontab the command /scripts/ftpupdate.

    i.e.

    # crontab -e

    (this line will syncronize fTP passwords every day at 3:05 )

    05 3 * * * /scripts/ftpupdate

    cPanel.net Support Ticket Number:
     
  3. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Thanks a lot Netx!

    I made mine so it would update every 15 minutes.

    cPanel.net Support Ticket Number:
     
  4. NetX

    NetX Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    You are welcome.
    Good luck :)

    cPanel.net Support Ticket Number:
     
  5. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I keep receiving emails every 15 minutes when the cronjob runs when resyncing the passwords. Does anybody know how I can supress the email so it doesn't notify me everytime /scripts/ftpupdate is ran?

    Ftp Password Files synced
    Vhost Passwords synced

    cPanel.net Support Ticket Number:
     
  6. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Do I need to include the >?

    Does this just go at the end of the line for /scripts/ftpupdate?

    Thanks for your help.

    cPanel.net Support Ticket Number:
     
  7. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    /scripts/ftpupdate > /dev/null

    You can even use

    /usr/local/cpanel/bin/ftpupdate > /dev/null

    This is wat the ftpupdate script actually calls and runs. Anyways its fine.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page