Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

change permissions in ftp program

Former Member
0 Likes
677

Hello,

we must send 6 different files via ftp to another Unix server.

files will be created from user aleremote at BW appl. server with permissions -rw-rw - (660)

if we send this files to the another server the permissions are then the same.

the unix server need permissions rw rw rw (666) .

it's possible to change the permissions in the ftp program ??

thank' in advance

Thorsten

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
566

Hello Torsten,

I suggest to first change the permission on the files and then transfer them by FTP or whatever technology you want to use.

We are using

CMOD 777 filename

to change the permission on UNIX. and afterwards we copy files using SCP. This is working unix to unix, unix to linux, unix to windows, ... On windows you just need to install an ssh-service.

To fire the command on unix, you can use:

DATA: l_command TYPE pfecommand,
      BEGIN OF lt_tab OCCURS 50,
        zeile(400) ,
      END OF lt_tab.

l_command = 'CMOD 777 your_filename'. 

call 'SYSTEM' id 'COMMAND' field l_command
              id 'TAB'     field lt_tab[].

regards

Hello,

we must send 6 different files via ftp to another Unix server.

files will be created from user aleremote at BW appl. server with permissions -rw-rw - (660)

if we send this files to the another server the permissions are then the same.

the unix server need permissions rw rw rw (666) .

it's possible to change the permissions in the ftp program ??

thank' in advance

Thorsten

1 REPLY 1
Read only

Former Member
0 Likes
567

Hello Torsten,

I suggest to first change the permission on the files and then transfer them by FTP or whatever technology you want to use.

We are using

CMOD 777 filename

to change the permission on UNIX. and afterwards we copy files using SCP. This is working unix to unix, unix to linux, unix to windows, ... On windows you just need to install an ssh-service.

To fire the command on unix, you can use:

DATA: l_command TYPE pfecommand,
      BEGIN OF lt_tab OCCURS 50,
        zeile(400) ,
      END OF lt_tab.

l_command = 'CMOD 777 your_filename'. 

call 'SYSTEM' id 'COMMAND' field l_command
              id 'TAB'     field lt_tab[].

regards