def METHOD_NAME(udb,upass,username,password,path):
    try:
        cmd = []
        cmd.append("chown")
        cmd.append("-R")
        cmd.append("ftpuser:2001")
        cmd.append(path)
        res = subprocess.call(cmd)
        if res == 1:
            print("Permissions not changed.")
        else:
            print("User permissions setted.")
        query = "INSERT INTO ftp_ftpuser (userid,passwd,homedir) VALUES ('" + username + "'" +","+"'"+password+"'"+","+"'"+path+"'"+");"
        print(query)
        sql.mysqlUtilities.SendQuery(udb,upass, "ftp", query)
    except BaseException as msg:
        logging.CyberCPLogFileWriter.writeToFile(
            str(msg) + " [createNewFTPAccount]")
        return 0
    return 1