AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Modify SFTP UMASK

    Posted Tue January 13, 2015 11:47 AM

    Originally posted by: ttrinh


     Hi,

    I have an issue with SFTP UMASK from Linux client to AIX. It seems that the SFTP client affects the behaviour of uploaded files in an AIX SFTP server.

    In Windows (Filezilla) and AIX Sftp client, uploaded files' permission follow the UMASK of user profile.  This is the correct expected behaviour.

    However,  if a Linux SFTP client is used, the uploaded files follow permissions of the original file. Have anyone come across something similar to this? Any suggestion or idea.



  • 2.  Re: Modify SFTP UMASK

    Posted Tue January 13, 2015 12:18 PM

    Originally posted by: GarlandJoseph


    Are you using the same account on the AIX system when you transfer the file from the diffrent O/S's? 



  • 3.  Re: Modify SFTP UMASK

    Posted Tue January 13, 2015 02:01 PM

    Originally posted by: ttrinh


    No.



  • 4.  Re: Modify SFTP UMASK

    Posted Tue January 13, 2015 05:08 PM

    Originally posted by: GarlandJoseph


    I think it's  important form a single-point-of-elimination/troublet-shooting stand point to use the same account and SSH server in order to evaulate client differences.   I think some sshd servers will allow different umasks per user.  I am not sure; however, using the same SSH/sftp account  would eliminate the need to worry about this. 

    Try sss/sftp'ing into the same account from the different clients.



  • 5.  Re: Modify SFTP UMASK

    Posted Tue January 20, 2015 04:57 AM

    Originally posted by: Wouter Liefting


    Instead of sftp, you may want to consider scp. scp supports the -p option, which preserves modification time, permissions and such.