sudo -u -i [$user]

Forum Forums New users New Users and General Questions sudo -u -i [$user]

  • This topic has 4 replies, 5 voices, and was last updated Jan 27-12:45 pm by Brian Masinick.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #98370
    Member
    imWACCo
      sudo -u -i ts3
      sudo: unknown user: -i
      sudo: error initializing audit plugin sudoers_audit
      WACCo@TeamSpeak-Server:~
      $ sudo -u --login ts3
      sudo: unknown user: --login
      sudo: error initializing audit plugin sudoers_audit

      From https://www.howtoforge.com/how-to-install-teamspeak-server-on-debian-11/ Step 4

      How can I log-in as [$user]? I thought sudo was the same the world over, but the Ver in antiX does not like -i or –login

      Yes, I have done a sudo apt update && sudo apt upgrade

      Attachments:
      #98376
      Member
      PPC
        Helpful
        Up
        0
        ::

        man su does not show the “-i” flag in antiX. I looked on an on-line manual, and it also did not list that as one of the possible flags

        The “–login” sudo flag exists.

        Note: using su and sudo is not the same thing, right?

        I can’t offer you a solution, just my thoughts that this is not an antiX problem. Can it be a typo on the instructions?

        Edit: Sorry, bad eyes, too stressed about problems with my computer (and mainly, my life), read the OP wrong.
        Proposed solution:

        sudo -u ts3 -i

        Considering the previous posts, it’s probably a typo in the instructions you are trying to follow…

        • This reply was modified 3 months, 1 week ago by PPC.
        #98380
        Member
        Robin
          Helpful
          Up
          0
          ::

          sudo -u expects user name. Otherwise -i will be interpreted as user name, as you can read from the command response you’ve posted.

          so try
          sudo -u <username>

          at least antiX 21/22 sudo knows -i (equivalent to –login), it is documented in man sudo.

          So try
          sudo -u <username> -i

          Windows is like a submarine. Open a window and serious problems will start.

          #98383
          Member
          sybok
            Helpful
            Up
            0
            ::

            Not quite sure what exactly you intend to do but why not use simple ‘ssh -XC <username>@$(hostname)’?
            Of course, the switches to ‘ssh’ can be adjusted to your needs.

            #98390
            Moderator
            Brian Masinick
              Helpful
              Up
              0
              ::

              sudo -u masinick -i works. So does sudo -u root -i on my system.

              --
              Brian Masinick

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.