[Info-vax] Force SFTP to run LOGIN.COM or equivalent
Kenneth Randell
kennethnospam.randell at gmail.com
Thu Feb 10 07:22:02 EST 2022
On Wednesday, February 9, 2022 at 9:25:59 PM UTC-5, VAXman- wrote:
> In article <1a89d9e6-1a4b-498c... at googlegroups.com>, Kenneth Randell <kennethnos... at gmail.com> writes:
> >OpenVMS 8.4, TCP/IP 5.7 ECO 5
> >
> >Is there a way to force the SFTP server to execute a LOGIN.COM (or even SYS$SYLOGIN) for that matter?
> >
> >When a user uses SSH to log into 'interactively', the SSH server will execute the normal SYS$SYLOGIN and any LGICMD specified in AUTHORIZE.
> >
> >When the same user uses SFTP to transfer files, the SSH server doesn't execute the SYS$SYLOGIN or LGICMD specified; it appears they are totally ignored.
> >
> >Am I missing something obvious?
> Perhaps.
>
> First, welcome back. i have seen a post from you in eons.
>
> Why would you want the SYLOGIN.COM or LOGIN.COM to be executed? SFTP is NOT
> an interactive session, it's a file transfer function. The only commands it
> can or will recognize are the SFTP commands; there's no DCL.
>
> --
> VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
>
> I speak to machines with the voice of humanity.
Thanks for the responses - as for WHY, basically I want to mimic the behavior of FTP where a login script can set a default directory for files transfers which is different than the user's 'home' directory that would contain log files which just further confuses matters. I realize it's just as simple for the user to issue a CWD command during the SFTP file transfer session, but there are those who will simply say 'SFTP doesn't work the same way as FTP did' and it gets old trying to explain this over and over again.
More information about the Info-vax
mailing list