FTP problem with site exec command

Hello dear Users,
I am for the first time in this forum. I come from Germany. Please excuse my bad englisch. My OS is SCO open Server Release 5.
I have a problem whith FTP and the command "site exec"

if I use the command

"ftp> site chmod 777 /tmp/startkpf.sc
200 CHMOD command successful

.
it is OK and works

but if I use the command

 ftp> site exec /tmp/startkpf.sc

I get the following message and nothing is done

200-startkpf.sc
200  (end of 'startkpf.sc')

I linked the file /tmp/startkpf.sc to /etc/ftp-exec with permissions 777
but it does not work.

I have tryed it with root permissions
but it does not work.

Please help me.

Greeting from Germany to all Users

Peter

Does what you are attempting to do work in a Linux environment?

no Linux, it is SCO UNIX Open Server Release 5.

777 is not the magic sledgehammer to fix all problems. You have made this file world-writable and had better correct that before someone else overwrites it with things you may not like.

The System is not connectet to Internet only in Local Network.
Therfor it is the permission 777 not interesting.
Thanks for yor warning
Greetings Peter

There are more things than invaders which could alter the file. These file permissions were invented for a reason, long before the internet even existed. They are to prevent you from shooting yourself in the foot.

A program glitch could touch it. You might overwrite it by accident yourself, typing in 'put' instead of 'site exec'. Or any of a thousand things we'd never think of because they don't happen to files which aren't set 777.

In all cases, 'permission denied' is what you'd rather the system do, instead of allowing it to be filled with garbage.

777 is not the magic sledgehammer to solve all problems. Like a real sledgehammer, it makes giant holes.

/etc/ftp-exec is a directory not a file. Try putting your file in that directory.

I do not want any warnings from you about any risk, I know about the risk.
I want a solution for my problem
Greetings from Germany
Peter

---------- Post updated at 12:56 PM ---------- Previous update was at 12:50 PM ----------

Yes I have done it, but no work.
I think there is a problem in the configuration and enable this command in FTP.

but I dont know where I can this to configurate

Greetings Peter

It appears that the site exec command has been disabled.

FTP SITE EXEC can allow arbitrary command execution (FTP Site Exec DotDot)

For the exec command to work, you would need an un-patched version of 5.0.5 or older.

What is SSE070, the WU-FTPD security patch for SCO OpenServer 5?

1 Like