Based on this amazing answer Saved me multiple times when I forgot to use visudo!
-
Open two SSH sessions to the target server.
-
In the first session, get the PID of bash by running:
$ echo $$
- In the second session, start the authentication agent with:
$ pkttyagent --process $YOUR_PID_HERE
- Use the pid obtained from step 1.
- Back in the first session, run:
$ pkexec chown root:root /etc/sudoers /etc/sudoers.d -R
- Enter the password in the second session password promt
To install dotnet sdks on arm64 macOS:
# dotnet-install.sh --install-dir /usr/local/share/dotnet -arch arm64 --channel 6.0
# dotnet-install.sh --install-dir /usr/local/share/dotnet/x64 -arch x64 --channel 6.0
# dotnet-install.sh --install-dir /usr/local/share/dotnet/x64 -arch x64 --channel 3.1
In case dotnet
command cannot be found in the PATH, create a symlink to the /usr/local/bin:
# mkdir -p /usr/local/bin/
$ ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/
In case you need to add tag to the list of tickets in the file, please run:
$ cat issues.txt | xargs -I {} bash add-tag.sh --issue {} --tag TAG --TOKEN $YT_TOKEN