|
So you have the home directory set at signon and are allowing TECHSUPPRT to sign on. Now you want to restrict them to that directory correct? You are now looking at the ftp server exit point. If you don't want to get into writing an exit program for this server you'll want to look at the various packages on the market. Some are better than others just like all products. I'm partial to NetworkSecurity from The PowerTech Group <G>. If your interested in NetworkSecurity you can go to our website and download a demo version. You won't forego any development cost of your own exit program with NetworkSecurity. You can have NetworkSecurity run yours as supplemental to ours. Gary Monnier | Senior Software Developer 19426 68th Ave. S Kent, WA 98032 (253) 872-7788 ext. 308 gary.monnier@xxxxxxxxxxxxx www.powertech.com This email message and any attachments are intended only for the use of the intended recipient named above and may contain information that is privileged and confidential. If you are not the intended recipient, any dissemination, distribution, or copying is strictly prohibited. If you received this email message in error, please immediately notify the sender by replying to this email message or by telephone and delete the message from your email system. Thank you. -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Tom Hightower Sent: Friday, February 18, 2005 1:09 PM To: midrange-l@xxxxxxxxxxxx Subject: Re: How do I force an FTP user to '/home/ftpdir'? Using WRKREGINF, I've added my program FTPLOGON to exit point QIBM_QTMF_SVR_LOGON, format TCPL0200. I've used a variant of this same program at format TCPL0100 for a couple of years to control FTP login access, and it's worked flawlessly. This is my *entry parm list for the program: c *Entry Plist * * Input parameters c Parm AppId c Parm UserId c Parm UserIdLen c Parm Authen c Parm AuthenLen c Parm IpAddr c Parm IpAddrLen * Return parameters c Parm RtnCode c Parm User c Parm Password c Parm CurrLib * added for format TCPL0200 c parm HomeDir c parm HomeDirLen And this is the d-specs for those fields: D AppId S 9B 0 D UserId S 999 D UserIdLen S 9B 0 D Authen S 999 D AuthenLen S 9B 0 D IpAddr S 15 D IpAddrLen S 9B 0 D RtnCode S 9B 0 D User S 10 D Password S 10 D CurrLib S 10 d homedir S 999 d homedirlen S 9b 0 In my program, I'm checking for the value of the UserId field; if it's 'TECHSUPPRT', I set homedir and homedir thusly: if FTPUser = TECHSUPPRT; homedir = '/home/tech/software'; homedirlen = %len(%trim(homedir)); endif; My question is: 1) what value should I assign to RtnCode so that the FTP user is forced into /home/tech/software? I want it so that if they do 'dir' (using DOS-style FTP client), all they see is the contents of the '/home/tech/software'. Tom -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.