In the first article NetServer for everyone – part 1 we introduced the main concepts about NetServer and the instructions for configuring it and managing its startup and shutdown.
In this second article we talk about how to share IFS resources and make them available for client access via network resources.
Remember that you do not need to install any additional software on your PC to use the resources shared with the IBM i NetServer.
Index
You must log on to Navigator for i as a user who has at least *IOSYSCFG special authority.
For more information on using Navigator for i you can consult the video tutorial Power Coffee 1/2022 .
From the icon File system choose the voice File shares.
The already shared resources are listed:
From the button Actions choose the voice New file share…
The essential configurations for sharing an IFS folder are highlighted in the following figure:
Since IBM i version 7.5 it is possible to protect shared resources using authorization lists (see the previous figure for the parameter Authorization list ). For more information, see the documentation on page https://www.ibm.com/docs/en/i/7.5?topic=security-using-authorization-lists-restrict-usage-by-user .
If you are sharing a file system resource QDLS extension users who will need to access it must be subscribed to the system directory. Although in general it is now discouraged to use this much more limited file system than the root file system.
To subscribe a user to the system directory use option 21 from the PCSTSK menu or the command ADD
.
Unlike other file systems, QOpenSys file system is case sensitive . So eg the files MYFILE.TXT, MyFile.txt and myfile.txt are different.
No.B. All PC clients supported by IBM NerServer are case-insensitive and filenames are converted to uppercase by default.
In the example of the above 3 files in the shared resources only the file MYFILE.TXT would be recognized.
Shared resources can be hidden by adding the suffix $
to the share name. So you will be able to access the resource only by knowing its name, but it will not be shown when browsing network resources.
It is also possible to manage resource sharing by calling the APIs:
CALL QZLSADFS PARM(share-name 'folder-path' x'00000005' x'00000000' 'shared-description' x'00000001' x'ffffffff' x'00000000')
CALL QZLSRMS PARM(share-name x'00000000')
It is very important to share only the strictly necessary resources. So it makes sense to have a clear picture of what resources have been shared. From the IBM i version 7.3 SF99703 lev. 22 and 7.4 SF99704 lev. 10 the SQL service is also available SERVER_SHARE_INFO which allows us to extract the list of shared resources with a simple query.
select SERVER_SHARE_NAME "Share Name", PATH_NAME "Path", TEXT_DESCRIPTION "Description", PERMISSIONS "Permissions", CURRENT_CONNECTIONS "Current Connections" from SERVER_SHARE_INFO where SHARE_TYPE = 'FILE' order by 1;
Further information can be found in Power Coffee 2/2020 .
The main page of the IBM documentation on NetServer can be consulted at this link: https://www.ibm.com/docs/en/i/7.5?topic=services-i-netserver . Other useful resources can be found in the attached document:
In the next article we will talk about NetTools : A library of 5250 session commands to manage and configure the NetServer.
We are pleased to receive and share this "tip & trick" from Patrick Rizzi, which introduces a technique that allows…
I take inspiration from a response by Michael Mayer on the Midrange.com mailing lists to someone who asked how to…
Businesses are increasingly seeking tools to enhance efficiency, collaboration, and resource management. Enterprise Resource Planning (ERP) systems provide a comprehensive…
Early April saw the release of the "Spring Version" of ACS Access Client Solution, version 1.1.9.5 Interesting new features especially…
If the packed agenda of sessions at Common Europe Congress 2024, June 3-6 Milan, wasn't enough for you, here's another…
Debugging functions with Visual Studio Code have been available for some time but this new version 2.10.0 simplifies the handling…
View Comments