in reply to chmod with Net::FTP

$ftp->site('chmod', '777', 'remotefile');