• 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
    Midrange Dynamics North America

    Git up to speed with MDChange!

    Git can be lightning-fast when dealing with just a few hundred items in a repository. But when dealing with tens of thousands of items, transaction wait times can take minutes.

    MDChange offers an elegant solution that enables you to work efficiently any size Git repository while making your Git experience seamless and highly responsive.

    Learn more.

    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

  • Public Preview For Watson Code Assistant for i Available Soon
  • COMMON Youth Movement Continues at POWERUp 2025
  • IBM Preserves Memory Investments Across Power10 And Power11
  • Eradani Uses AI For New EDI And API Service
  • Picking Apart IBM’s $150 Billion In US Manufacturing And R&D
  • FAX/400 And CICS For i Are Dead. What Will IBM Kill Next?
  • Fresche Overhauls X-Analysis With Web UI, AI Smarts
  • Is It Time To Add The Rust Programming Language To IBM i?
  • Is IBM Going To Raise Prices On Power10 Expert Care?
  • IBM i PTF Guide, Volume 27, Number 20

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