- 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)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Forum › Forums › New users › New Users and General Questions › sudo -u -i [$user]
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
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…
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.
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.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |