Other user team performance



  • There's a test and test user. Both with customary rights. I'm working with the test user, knowing the test1 doesn't have a password, and that's what I want to do. Trying to do this:

    su test1 -c whoami
    

    But it wants some password, though it's not there. Any other decisions? Sudo is not an option because the test user is not in the sudoers file.

    OS: FreeBSD 8.1 amd64
    


  • No password, which means that the user can't be authenticated as required by the programme su (The super-user has the privilege to authenticate through this program without using the user password).

    I know at least two options:

    1. Apply the password to this user on behalf of the super-user:

      # passwd test1
      
    2. if programme sudo set, add /etc/sudoerssuch a line:

      test ALL = (test1) ALL
      

      this will enable the user test any programmes/commands on behalf of the user test1:

      $ sudo -u test1 whoami
      

      User password test

      May be done without a password request, adding a directive NOPASSWD: in line above:

      test ALL = (test1) NOPASSWD: ALL
      

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2