Author Posts

May 31, 2018 at 12:17 pm

Hi All

I'm in the process of writing a script that will take a .csv file, convert it into a .dat file and then upload it to a linux server. This process needs to be automated as the .dat file is used by another department. I've got the upload working but the .dat file needs to have the permission level of '666' and so far it's only '644'.

Is this possible within PowerShell or do I need to stick with the vb script that I currently have?

Any help would be appreciated as this is beginning to really frustrate me.

Thanks

May 31, 2018 at 1:04 pm

Files typically inherit the permissions of the directory, so wouldn't you update the permissions of the FTP directory to 666 to have any uploaded file inherit those permissions?

May 31, 2018 at 1:20 pm

I've checked the directory permission and it's set to 777 so it appears to be not inheriting those permissions. Could it be linked to the user details I have been given by the server hosts i'm using to upload the file?