FTP Edit File Permissions
From UBot Studio
This command is an FTP command.
The command allows you to change the permissions of a specified file.
It works within the Connect to FTP Server command.
Permissions are set using numbers.
'''# Permisssion 7 full 6 read and write 5 read and execute 4 read only 3 write and execute 2 write only 1 execute only 0 none'''
So for example, 777 would mean that everyone has full permission to the file.
755 would mean that the owner of the file has full permissions for the file, however everyone else has "read and execute" permissions (they cannot edit the file, but they can read and execute it).
plugin command("FTPCommands.dll", "connect to ftp server", "FTP", "ftp.mysite.org", 21, "myusername", "password1234", "/var/www/mysite.com/public_html/") { plugin command("FTPCommands.dll", "ftp edit file permissions", "MyFile.txt", 777) }
Once this command is run, the permissions of the specified file will be changed.