File permission altered after overwrite via FTP

FTP, SFTP, FTPS, and SSH/telnet console issues

File permission altered after overwrite via FTP

Postby seumvb » Tue Jan 26, 2010 1:42 am

Hello,

I am editing scripts on an AIX machine via configured FTP accounts, meaning I open the FTP explorer tree, open a file, edit, then save. Unfortunately, after saving the file permissions (on AIX) are changed. How can I avoid that?

I understand that the (locally) edited file is being "put" onto the AIX machine when saving - is that assumption correct? If so, I do not suspect the FTP server (standard ftpd on AIX) to misbehave because if I do a manual "put" from my PC the file permissions remain the same. I have tried to send a "SITE UMASK 007" when connecting - which didn't make any difference, either.

AHA. TIA.

Regards,
Nora
seumvb
Newbie
 
Posts: 2
Joined: Wed Dec 02, 2009 4:50 am
Location: Graz, Austria

Re: File permission altered after overwrite via FTP

Postby Mofi » Tue Jan 26, 2010 1:50 am

I'm not using the FTP feature of UltraEdit, but checking the option Copy file instead of using rename when creating backup file at Advanced - Configuration - File Handling - Advanced may help. I don't really know if this setting is also helpful to keep permissions for files loaded/saved via FTP.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: File permission altered after overwrite via FTP

Postby seumvb » Tue Jan 26, 2010 2:16 am

This is incredible - you absolutely hit the bull's eye! I checked the mentioned option, and the "save" did not alter my permissions anymore :D

Thank you so much!

Nora
seumvb
Newbie
 
Posts: 2
Joined: Wed Dec 02, 2009 4:50 am
Location: Graz, Austria

UltraEdit changes file permissions on C: but not other drives

Postby Tripecac » Thu Nov 25, 2010 11:33 am

Whenever I save a file on C:, ultraedit changes the file permissions to 000 rather than 700, according to cygwin. Notepad does not do this.

Windows doesn't care, but in order for cygwin scripts to be able to use those files, I need to manually chmod 700 them as administrator.

Is there a way to prevent UltraEdit from changing file permissions like this?

Thanks!

Edit: Found this thread and the configuration setting is indeed the solution for the permission problem.
User avatar
Tripecac
Basic User
Basic User
 
Posts: 28
Joined: Thu Apr 07, 2005 11:00 pm


Return to FTP/SFTP / SSH/Telnet