New Linux Shell Users

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf New Linux Shell Users

  • Creator
    Topic
  • #51747
    Don Anderson
    Participant

      I’ve added new Linux Shell users and mimiced the hci user with the same group and profile.  When I attempt a hci command with the new user the hci command fails to find the command. Any suggestions?

      i.e

      [hack48-~]$ hciss

      -bash: hciss: command not found

      [hack48-~]$

    Viewing 0 reply threads
    • Author
      Replies
      • #71561
        Scott Folley
        Participant

          I am going to guess that you are using bash as your default shell though you did not say that, I am also assuming that a useradd on your system supplies a .bash_profile by default.  If those are accurate assumptions then you have two choices.  You can either eliminate the .bash_profile in which case the login process will look next for the .profile (which you would have brought over from the hci user) or you can add this to your .bash_profile after bringing the .profile over from hci:

          Code:


          if [ -f ~/.profile ]; then
                 . ~/.profile
          fi

          Either way should work.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.