Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Open IFS shared folder with credentials

1,093 views
Skip to first unread message

Falco

unread,
Aug 18, 2009, 9:38:11 PM8/18/09
to
I have a shared folder on the iSeries I am using to store a Windows
batch file that FTP's files from a users floppy drive to the iSeries.
It is initiating from a green screen using the STRPCCMD to evoke the
batch file. Problem is that if the user has not opened it from their
PC and entered their iSeries user id and password first the batch file
just says "Access Denied"
Is there a way to pass the user name and password, or change the
authority on the folder or a better way of doing this? Security on
this folder is not an issue either.

Thanks,

Falco

ga

unread,
Aug 19, 2009, 9:11:32 AM8/19/09
to
A couple of things...

First, I believe the user has to be enrolled in the system directory
(WRKDIRE)

Second, I think in order to work successfully, the user id/password
are the same for both the PC and the iseries.

Third, you can consider either creating a *.bat file that runs when
the user signs onto the PC (i.e. put in the startup group for either
the specific user, or all users) like the following I use:

My file name on all PC's is "as400lo.bat"

The contents are:

echo off
C:\PROGRA~1\IBM\CLIENT~1\CWBLOGON S1086DDF /U USERID /P PASSWORD

The file would be stored in either of the following folders:
C:\Documents and Settings\UserID.Domain\Start Menu\Programs\Startup
or
C:\Documents and Settings\All Users\Start Menu\Programs\Startup

I simply put this as400lo.bat file in the startup group for either
"All users" or the Userid.domain of the one logging on. As long as
there are no security issues, you could maybe do it this way. I
suppose another way would be to create a new batch file that runs on
the PC that includes the cwblogon at the very start of the batch file,
then executes the other batch file or something like that.

There might be some other way to "test" to see if there is a live
connection, but not sure what that would be.

ga

Falco <cwhi...@hotmail.com> wrote:

ga
nos...@nospam.fmctc.com

a4ginatl

unread,
Aug 20, 2009, 8:38:31 AM8/20/09
to
> Falco <cwhit...@hotmail.com> wrote:
> >I have a shared folder on the iSeries I am using to store a Windows
> >batch file that FTP's files from a users floppy drive to the iSeries.
> >It is initiating from a green screen using the STRPCCMD to evoke the
> >batch file.  Problem is that if the user has not opened it from their
> >PC and entered their iSeries user id and password first the batch file
> >just says "Access Denied"
> >Is there a way to pass the user name and password, or change the
> >authority on the folder or a better way of doing this?  Security on
> >this folder is not an issue either.
>
> >Thanks,
>
> >Falco
>
> ga
> nos...@nospam.fmctc.com

The recommendations to store your user id and password should only be
required if you are using the DLS (document library system). If you
use DLS, which was built mainly for windows version 3, you will need
to add the user into the system directory WRKDIRE.

If you are using the IFS (recommended), you simply need to use your
version of iNavigator (iSeries Access) and go to the folder you need
the user to have access to and give permission to that user, group or
access list (WRKAUTL). You will need to share that folder first. The
authority works on the share.

If you have added your AS/400 to your windows workgroup or domain, the
AS/400 and the shares will be visible in your network to the
authorized users. In this way, the AS/400 looks like any PC/server.

Regards

Darryl Freinkel

Karl Hanson

unread,
Aug 20, 2009, 9:44:59 AM8/20/09
to
a4ginatl wrote:
<snip>

>
> The recommendations to store your user id and password should only be
> required if you are using the DLS (document library system). If you
> use DLS, which was built mainly for windows version 3, you will need
> to add the user into the system directory WRKDIRE.
>
> If you are using the IFS (recommended), you simply need to use your
<snip>

Just a clarification - QDLS, QSYS.LIB, "root", QOpenSys, etc are all
file systems supported by IFS. It might be easier to think of "the IFS"
as a common *interface* to file systems, rather than a data store.

http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?topic=/ifs/rzaaxfsknow.htm

--
Karl Hanson

a4ginatl

unread,
Aug 21, 2009, 10:02:29 AM8/21/09
to

Try the following using QNTC.

1. Share the floppy drive on that PC allowing public/everyone access.
2. Use the following command:
MD '/QNTC/thePCNameOntheNetwork/DriveAshareName'
Example: MD '/qntc/a4gpc02/F'
3. Use WRKLNK '/qntc/*' to see what PC's are recognized by the AS/400.
4. Use the CPYFRM* command to get your file(s)

Darryl Freinkel

a4ginatl

unread,
Aug 22, 2009, 11:40:50 AM8/22/09
to
On Aug 18, 9:38 pm, Falco <cwhit...@hotmail.com> wrote:

By the way, why do you not just create a folder on the AS/400, share
it, and map a drive to it from the user's PC. Then all you need to do
when putting the floppy in, is to drag and drop the file from the
floppy onto the mapped drive. This is a lot simpler than using client
access and you do not need client access on the PC. Simple windows
works well.

Darryl Freinkel.

0 new messages