IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Setting permissions on FTPd file

    Posted 01/04/08 09:47 AM

    Originally posted by: janhess


    I use the ftp adapter to send a file from a Windows server to a Unix server. The recipient wants the permissions on the file set to 777. How do I do this with the ftp adapter - is it part of the -SITE comand?
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Setting permissions on FTPd file

    Posted 01/04/08 10:01 AM

    Originally posted by: Kepa_Screen


    One of the things you could try is using UMASK command at Unix environment.
    You must put

    umask 000

    in the .profile of the user who is opening the ftp connection. Then all files created by this user will have 777 permissions, just contrary to 000 --> this means for 777, if you use umask 022, then permissions will be 755.

    Think this could help.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Setting permissions on FTPd file

    Posted 01/04/08 10:04 AM

    Originally posted by: janhess


    Is it the recipient that does this? All I do is send them a file.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: Setting permissions on FTPd file

    Posted 01/04/08 10:09 AM

    Originally posted by: SystemAdmin


    This sounds like a Unix issue.

    What Kepa is saying, the ". profile" script(?) which runs when that user logs in, can set the permissions on the file.

    I do not believe that an FTP connection could set permission on a file it's dropping to another box, only from that box could you change the permissions.

    Are they in your company, or is this external?
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 5.  Re: Setting permissions on FTPd file

    Posted 01/04/08 10:21 AM

    Originally posted by: Kepa_Screen


    What i'm saying is that you need to put at Unix Box, what permissions should have a file when created.

    Depends on what shell are you using at your unix box. If you use bash, then you must log at unix box with the user that your Ftp Adapter uses for doing the connection.

    Then go to that user "home" directory and look at .bash_profile

    This shell script is self executed when the users logs in ( just like "autoexec.bat" in DOS systems ).

    you must put the command

    "umask 000"

    at this .bash_profile and then all your "new" files created by this user, will have 777 permissions.
    If you are using another shell ( ash, ksh, sh ) then you must read at your unix system documentation just to know what is the "autoexec.bat"-like file used for that shell.

    I could remember that for sh shell, the file is named only .profile, if the shell is bash, then the name for the file would be .bash_profile

    This is a Unix issue, not a Ftp Adapter issue.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 6.  Re: Setting permissions on FTPd file

    Posted 01/04/08 10:25 AM

    Originally posted by: janhess


    Thanks. I'll pass that on. I'm glad it's not an ftp issue.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 7.  Re: Setting permissions on FTPd file

    Posted 01/04/08 10:31 AM

    Originally posted by: Kepa_Screen


    A very simple mode to do this could be:
    telnet your_unix_box

    log with the same user that is used by Ftp Adapter

    put this commands:

    cd ~
    echo "umask 000" >> .profile
    echo "umask 000" >> .bash_profile
    exit

    Think this may help
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender