5 Replies Latest reply on Dec 15, 2014 5:44 AM by Atul Matkar

    User_Delete.nsh:16: permission denied: userdel

    Atul Matkar

      Hi, I wrote a nsh script to delete user on target, for windows it is working but for linux it is not, if i execute it manually on target it works. any idea on error?

       

      SYSTEM=`uname -s`

      echo $SYSTEM

      # Determining operating system

      case $SYSTEM in

        WindowsNT)

        echo "OS is Windows."

        net user CLMTEST /del

        exit 0

        ;;

        Linux)

        echo "OS is Linux."

        userdel -fr CLMTEST

        ;;

        *)

        ;;

      esac

       

      error:

      //@/data/bmc/bladelogic/NSH/tmp/job_deployment_1_lapbsa01/scripts/job__834af930-e955-4b85-a179-1a9ea02d2b86/script_DBKey-SJobKeyImpl-2000371-1__840b8dc0-635c-4f4a-ad7b-a01b3ee7ff3e.2000103.1_User_Delete.nsh:16: permission denied: userdel