Operating System - HP-UX
1833738 Members
2445 Online
110063 Solutions
New Discussion

11.0 ftp and SITE EXEC: how to?

 
Robert A. Passell
New Member

11.0 ftp and SITE EXEC: how to?

With HP-UX 11.0, ftpd is based on wu-ftpd and supports the SITE commands. I'm trying to get SITE EXEC to work. I can ftp to my target system and issue the "site exec testme" command, which returns without error, but my testme file (a test script which echoes date to a file in /tmp) does not seem to have run. When I run the testme script by hand as the same user that I ftp as: /etc/ftpd/ftp-exec/testme it shows as "not found" because of the permissions on the directories, although the testme file is owned by my login user and is executable. I think the problem might be the location of the script, which I assume is supposed to be /etc/ftpd/ftp-exec. Has anyone gotten this new feature to work and if so, how did you do it? Thanks in advance.
1 REPLY 1
Robert A. Passell
New Member

Re: 11.0 ftp and SITE EXEC: how to?

Well, it does work if you chmod /etc/ftpd and /etc/ftpd/ftp-exec to 555. In the long run, that may not be as secure as the default 544 permissions, but the documentation does state that "site exec" adds an inherent level of risk if it is enabled. Perhaps this is why...it's working now.