FTP problem with site exec command


 
Thread Tools Search this Thread
Operating Systems SCO FTP problem with site exec command
# 8  
Old 10-20-2014
Quote:
Originally Posted by Corona688
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.
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 ----------

Quote:
Originally Posted by jgt
/etc/ftp-exec is a directory not a file. Try putting your file in that directory.
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
# 9  
Old 10-20-2014
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?
This User Gave Thanks to jgt For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in using ftp command under if statement

If i use ftp command under if statement it shows the error "Syntax error at line 19 : `<<' is not matched." But if i use ftp command outside if statement, then it is running fine. Can anyone please help me in this. Code: #!/bin/sh echo "\nPress 1 for automated file dumping." echo... (9 Replies)
Discussion started by: makauser
9 Replies

2. UNIX for Dummies Questions & Answers

FTP put command problem

Hello,I am trying to put something on the ftp server using the put command. Whenever I try, I get this error: ftp> put SIMS.war local: SIMS.war remote: SIMS.war 200 PORT command successful 553 Can't open that file: Permission denied I have set rwx for all on that file and I still am... (3 Replies)
Discussion started by: mojoman
3 Replies

3. Shell Programming and Scripting

problem using exec command

Hello, i am trying to read one file in which questions are stored and then read the answers from keyboard. Here is what i came up with. But when i run it the contents of whole file gets displayed without taking any input from keyboard. Please help me where i went wrong. exec<questions... (1 Reply)
Discussion started by: salman4u
1 Replies

4. Shell Programming and Scripting

Problem in Downloading one day old files from FTP site

HI, I'm downloading one day old files from ftp site. Below is my script ---------------------------- printf "open $HOST \n" > ftp.cmd printf "user $USER $PASSWD\n" >> ftp.cmd printf "bin\n" >> ftp.cmd #printf "cd /Models/\n" >> ftp.cmd printf "prompt\n" >> ftp.cmd printf "for oldfile... (4 Replies)
Discussion started by: shekhar_v4
4 Replies

5. Solaris

SITE command of FTP not working

Using FTP on Solaris 5.8, I am not able to use the SITE command. It says Invalid command. I am trying to change the permission of the transmitted files to -rw-rw-rw on the destination machine. Any help would be greatly appreciated. (2 Replies)
Discussion started by: gauravsachan
2 Replies

6. Shell Programming and Scripting

Exec bash shell via PHP Site !

Hi everybody ! I writed php code so exec bash shell via php (SMS Send via bash shell) but i have problem as follow : 1. When i exec from linux mode : ./sms.sh --- output is "Messages ... OK". Then all message has been sent. 2. When i exec from PHP site --- return value is "Message ... OK" on... (1 Reply)
Discussion started by: lamthenhan
1 Replies

7. UNIX for Dummies Questions & Answers

Problem with Mail command: exec failed. errno=2.

I am trying to send email using the "mail" command. I keep getting an "exec failed. errno=2." message. Here is one the commands I have tried: mail test@mycompany.com < test1.out Any ideas what may be causing this error msg? (1 Reply)
Discussion started by: hawkman2k
1 Replies

8. Solaris

fork and exec ftp

Hi, I need to find/implement an application that FTPs (puts) all new files in a certain directory to an external storage unit. This application should check for new files every 10 seconds (leaving the FTP connection open in between the 10 seconds). The easiest way would be if there are... (2 Replies)
Discussion started by: KittyJ
2 Replies

9. UNIX for Dummies Questions & Answers

Site command used in ftp script

Hi everyone, can someone please tell me what can be wrong here? Script: ftp -v -n $FTPSERVER<< EOP >$LOGFILE 2>&1 user $USERID $PASSWD ascii site lrecl=500 site cyl site PRI=600 site SEC=300 lcd $FTPLOCALDIR cd $FTPTARGETDIR put $SOURCEFILE $TARGETFILE quit EOP Output:... (11 Replies)
Discussion started by: swoldering
11 Replies

10. HP-UX

Syntax problem with Unix ftp get command

An outside vendor has staged 2 batch files for us and I've tried to retrieve the files using the commands that they've indicated I could use to retrieve one file at a time. I've tried using this command in a shell script after a successful connection to their server: get "$$ ID=IL096869 BID='PGP... (2 Replies)
Discussion started by: mheinen
2 Replies
Login or Register to Ask a Question