Issue
im moving a file with ftp to a unix machine and it is assigning it "644" permissions when I want "777" so that it is writable. I also cant change it, I get permission denied.
ftp = ftplib.FTP(ip, login, pw)
with open(fName, "rb") as f:
ftp.cwd(fPath)
ftp.storlines("STOR " + fName, f)
ftp.sendcmd("SITE CHMOD 777 " + fName)
Solution
Yeah, use the root login. I had a similar problem and was using filezilla to fix it locally, until I realized filezilla was using the root login and I was using an engineers. This is probably answered elsewhere.
Answered By - MVB76 Answer Checked By - Timothy Miller (WPSolving Admin)