DX Unified Infrastructure Management

 View Only
  • 1.  nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    Posted May 07, 2021 07:56 PM
    Hello everybody

    I am validating on a /hub/robot with OS Linux Redhat 8, that is not automatically starting the nimbus service. Executing the command systemctl status nimbus I see that it indicates /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    [root@hubserver01 ~]# systemctl status nimbus
    ● nimbus.service - LSB: NimBUS Robot
    Loaded: loaded (/etc/rc.d/init.d/nimbus; generated)
    Active: active (exited) since Fri 2021-05-07 18:16:34 -05; 16min ago
    Docs: man:systemd-sysv-generator(8)
    Tasks: 0 (limit: 48901)
    Memory: 0B
    CGroup: /system.slice/nimbus.service

    May 07 18:16:34 hubserver01 systemd[1]: Starting LSB: NimBUS Robot...
    May 07 18:16:34 hubserver01 nimbus[1280]: Starting NimBUS:
    May 07 18:16:34 hubserver01 nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied
    May 07 18:16:34 hubserver01 systemd[1]: Started LSB: NimBUS Robot.
    [root@hubserver01 ~]#

    I validate the line 55 from /etc/rc.d/init.d/nimbu ---->

    50 chown -R ${NIMBUS_USR} /datauim/nimsoft
    51 chmod -R 755 /datauim/nimsoft
    52 fi
    53 su $NIMBUS_USR -c "./nimbus /datauim/nimsoft"
    54 else
    55 ./nimbus /datauim/nimsoft
    56 fi
    57
    58 if [ -d /var/lock/subsys ]

    The directory /datauim/nimsoft have the permission 755 root:root    ------->    drwxr-xr-x. 11 root root 4.0K May 7 16:20 nimsoft

    I don't understand what is the problem.

    Any idea?


  • 2.  RE: nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    Broadcom Employee
    Posted May 10, 2021 10:46 AM
    Hi Miller,

    You need to look at the ls -l on the ./nimbus file itself, not the directory for execute permissions. Looks like you need to check /datauim/nimsoft/nimbus. run a ls -l in that directory and make sure nimbus is owned by root.


  • 3.  RE: nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    Broadcom Employee
    Posted May 10, 2021 11:01 AM
    Verify your $NIMBUS_USR is root. can you manually execute /etc/rc.d/init.d/nimbus as root? Was it working?


  • 4.  RE: nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    Posted May 11, 2021 11:59 AM
    Hi @Gregg Stillwell I checked the directory and is root:root, and I can execute the nimbus service from rc.d/init.d

    ​[root@hubserver0 datauim]#
    [root@hubserver0 datauim]#
    [root@hubserver0 datauim]# pwd
    /datauim
    [root@hubserver0 datauim]#
    [root@hubserver0 datauim]# ls -lFa
    total 28
    drwxr-xr-x. 5 root root 4096 May 7 16:20 ./
    dr-xr-xr-x. 18 root root 239 May 7 15:26 ../
    drwxr-xr-x. 12 1001 users 4096 May 7 16:26 install/
    drwx------. 2 root root 16384 May 7 15:22 lost+found/
    drwxr-xr-x. 11 root root 4096 May 7 16:20 nimsoft/
    [root@hubserver0 datauim]#
    [root@hubserver0 datauim]# /etc/rc.d/init.d/nimbus start
    Starting NimBUS:

    [root@hubserver0 datauim]#


  • 5.  RE: nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    Broadcom Employee
    Posted May 11, 2021 12:10 PM
    So it works fine when you are logged in as root, so it is a permission issue somewhere. Can your SysAdmin find the issue?

    Problem I see is that there was a user that was deleted with a uid of 1001 and it was the owner of datauim/install. There is probably something else assigned to that user in your UIM directory structure. What is $NIMBUS_USER or other environment variable set? run # set or # env.

    This is where I see the possible issue to track down and your sysadmin should be engaged to reference who was user 1001?

    drwxr-xr-x. 12 1001 users 4096 May 7 16:26 install/​​​


  • 6.  RE: nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    Broadcom Employee
    Posted May 11, 2021 12:16 PM
    It may be easier to rpm -e and reinstall. And install as root.


  • 7.  RE: nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    Posted May 11, 2021 03:01 PM
    Line 55 is looking for the command "nimbus" in the current directory - from what you have included so far, it's not clear what directory that is. You might not have access to it.

    Also, any chance that directory is on nfs storage? there's usually an option there to prevent/disallow root user and root groups from executing code matching that to prevent someone from introducing something malicious.


  • 8.  RE: nimbus[1280]: /etc/rc.d/init.d/nimbus: line 55: ./nimbus: Permission denied

    Broadcom Employee
    Posted May 12, 2021 08:18 AM
    Check the UIM Home directory and bin: ls -l {NIMSOFT_HOME}/bin where the nimbus executable lives. Also check robot directory and all the directories under NIMSOFT_HOME. Make sure owner is root or equiv not 1001. Since you can run as root, it is permission issue.