• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Automatically Detecting And Re-Enabling Disabled NetServer Profiles

    August 27, 2014 Hey, Joe

    I have a few people that no matter what I do, always manage to disable their i5/OS NetServer (NetServer) user profile when they are opening an IBM i file share. Is there anything I can do to automatically re-enable their profiles when this happens?

    –Matt

    The first thing I’d do is check to see if there’s a reason your users are automatically disabling their NetServer profile when they try to open an IBM i file share as a Windows network drive. The most common situation I’ve found for auto-disabling NetServer profiles is when a user’s Windows network password doesn’t match their IBM i password. If there’s a mismatch between these passwords, a user is much more likely to accidentally disable their NetServer user profile then if both passwords are in sync.

    When this happens, you can re-enable their NetServer access manually or automatically.

    Manually Re-Enabling A NetServer Profile

    There are three ways you can manually re-enable a user’s NetServer profile.

    1. You can end and restart the IBM i NetServer server. NetServer re-enables all disabled NetServer user profiles whenever it restarts.
    2. Re-enable the disabled NetServer user ID through System i Navigator (OpsNav). There’s an option in OpsNav to re-enable disabled NetServer user profiles.
    3. Use option 12 = Work with NetServer users on the IBM i GO NETS menu to re-enable a user for NetServer access.

    Directions for using the techniques to restart the NetServer server and using OpsNav to re-enable disabled NetServer user IDs can be found in my article on fixing NetServer access problems. You can learn more about downloading and setting up the IBM i GO NETS menu for enabling NetServer access from the green screen from this article.

    There used to be a fourth method for re-enabling NetServer access by using the Change User Profile (CHGUSRPRF) command to change almost any user profile parameter. However, as I wrote about back in 2012, IBM disabled the CHGUSRPF method for re-enabling NetServer access because it “. . . did not provide a well-controlled interface for insuring that NetServer users are only re-enabled by a system administrator.” So that technique is no longer available.

    Automatically Re-Enabling NetServer User Profiles

    While these methods work for manually re-enabling a NetServer profile, you can also use a message monitoring program to automatically re-enable a NetServer profile. Here’s the drill I use in my shop. This technique will work with any IBM i monitoring software package that allows you to execute a command when it detects a specific message on your IBM i partition.

    1. Go to IBM’s CL Program and Command to Re-Enable NetServer Access website to access the source code and instructions for creating the RSTNETUSRP program and the RSTNETUSR command on your IBM i partition. Create these objects on your system. RSTNETUSRP and RSTNETUSR perform the following functions.

    1. RSTNETUSRP is a simple CL program that calls the QZLSCHSI API to re-enable a disabled NetServer user profile.
    2. RSTNETUSR is a command that re-enables a disabled NetServer user profile by prompting for the disabled NetServer user ID and then calling the RSTNETUSRP program to re-enable that user.

    2. Go into your IBM i monitoring software and set up a monitor to look for and respond to the following IBM i CPIB682 message in the QCPFMSG message file.

    CPIB682 - User profile &1 disabled for i5/OS Support 
    for Windows Network Neighborhood access.
    

    3. Configure the monitor you set up in step 2 so that it performs the following command when it finds a CPIB682 message:

    SBMJOB CMD(LIBRARY/RSTNETUSR USER('&1')) 
    JOB(RSTNETSRV) JOBQ(QSYS/QSYSNOMAX) USER(USERNAME)
    

    Where LIBRARY equals the library name where the RSTNETUSR command resides and USERNAME equals the name of an authorized user who can run the RSTNETUSR command.

    Using this command, your message management software will submit a batch job that will automatically re-enable NetServer access for the user parameter named in the CPIB682 message (&1). Set up this monitor to run every few minutes and your system will automatically re-enable disabled NetServer user profiles without administrative assistance.

    And that should take care of auto-enabling any disabled NetServer user profiles on your system, without having to contact an administrator.

    HTH

    –Joe

    Joe Hertvik is an IBM i subject matter expert (SME) and the owner of Hertvik Business Services, a service company that provides written marketing content and presentation services for the computer industry, including white papers, case studies, and other marketing material. Email Joe for a free quote for any upcoming projects. He also runs a data center for two companies outside Chicago, featuring multiple IBM i ERP systems. Joe is a contributing editor for IT Jungle and has written the Admin Alert column since 2002. Check out his blog where he features practical information for tech users at joehertvik.com.

    RELATED STORIES

    Admin Alert: Of Course, Everything I Know About NetServer Could Change

    Admin Alert: How To Run NetServer from the Green Screen in 10 Minutes

    Three Ways To Fix NetServer Access Problems



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Maxava:  Don't wait for a disaster. Start planning today. DR Strategy Guide for IBM i FREE eBook.
    System i Developer:  Upgrade your skills at the RPG & DB2 Summit in Minneapolis, Sept 30 - Oct 2.
    COMMON:  Join us at the COMMON 2014 Fall Conference & Expo in Indianapolis, Oct 27-29

    More IT Jungle Resources:

    System i PTF Guide: Weekly PTF Updates
    IBM i Events Calendar: National Conferences, Local Events, and Webinars
    Breaking News: News Hot Off The Press
    TPM @ EnterpriseTech: High Performance Computing Industry News From ITJ EIC Timothy Prickett Morgan

    IT Evolution Chicago Style Plotting Out A Power Systems Resurgence

    Leave a Reply Cancel reply

Volume 14, Number 19 -- August 27, 2014
THIS ISSUE SPONSORED BY:

Bug Busters Software Engineering
WorksRight Software
QUERY FILE for IBM i

Table of Contents

  • Creating A GUID In DB2 For i
  • Use SQL To Read IFS Directories
  • Automatically Detecting And Re-Enabling Disabled NetServer Profiles

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24
  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle