3 Replies Latest reply: Dec 10, 2012 5:49 PM by vladodias RSS

    How to set file permission using Oracle FTP Adapter

    910600
      Hi,
      I am using Oracle SOA Suite 11.1.1.4. I am trying to put a file using Oracle FTP adapter on unix box. The file that gets written to target system has file permission as RW/R/R. But this is a legacy system, and for them to consume this file - they expect the file permission to be RW/RW/R.
      They have set the .profile with the required permissions for the ftp user account that we are using. But still when my BPEL process writes a file to unix box through ftp adapter, the file permission is RW/R/R.
      Is there any way to control file permissions while writing files using ftp adapter? Any help would be highly appreciated.
        • 1. Re: How to set file permission using Oracle FTP Adapter
          vladodias
          Hi,

          You have to set umask for your ftp server... Some references bellow...
          http://www.unix.com/hp-ux/60086-umask-ftp-account.html
          http://www.unix.com/aix/138860-default-umask-setting-during-ftp.html

          Cheer,
          Vlad
          • 2. Re: How to set file permission using Oracle FTP Adapter
            910600
            Hi,
            Thanks for the response. But these setting needs to be done on unix server.
            ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd -u 2

            This setting will enable the same configurations for all other ftp accounts on the server, which doesnt sound correct. Any other way of doing this? Or can this be done only for one ftp account?
            • 3. Re: How to set file permission using Oracle FTP Adapter
              vladodias
              907597 wrote:
              But these setting needs to be done on unix server.
              Yes, that's the way to go... There's no config for that on FtpAdapter as far as I know...
              This setting will enable the same configurations for all other ftp accounts on the server, which doesnt sound correct. Any other way of doing this? Or can this be done only for one ftp account?
              You have to check if your ftp server is capable of having different umask for different ftp users... I believe most do not...
              http://h30499.www3.hp.com/t5/System-Administration/Setting-FTP-umask-per-user/td-p/2590101#.UMZ0TeEe7ng

              Cheers,
              Vlad