Comment by Kamil Maciorowski on Is it possible to use a live boot of Linux on...
What keeps you from just trying to use an SSD instead of a USB stick? and from seeing what happens? Few days ago I put Kubuntu installer on a 2TB SSD connected via a USB bridge, only because I had no...
View ArticleComment by Kamil Maciorowski on Is there support for syntax highlighting for...
Kate could reinvent the wheel (and maybe it does), but IMO a good general approach would be if we could enable interpreting ANSI color codes and such. Then we could just dmesg --color=always | kate...
View ArticleComment by Kamil Maciorowski on Cannot open port 9
The right thing to do is to improve the old question (by editing it) and to have it reopened, not to spam the site with another copy of the question.
View ArticleComment by Kamil Maciorowski on How to prevent ssh password logins without...
I have tested in Debian and this works. Two things: (1) It requires PasswordAuthentication yes or KbdInteractiveAuthentication yes. The OP probably has both set to no for the user, so it's good to...
View ArticleComment by Kamil Maciorowski on How to prevent ssh password logins without...
PasswordAuthentication no, the title of your question and the phrase "prevent ssh password login" made me believe you want to disable exactly this: logging in with password, while still allowing public...
View ArticleComment by Kamil Maciorowski on One builds reputation by asking questions?
What if one is more of an answer guy than a question guy? – Then one should write answers. I wrote 2000+ answers and about 10 questions.
View ArticleComment by Kamil Maciorowski on Why does sudo -i -u fail to pick up the...
See what the manual says about HOME variable and the environment in general. Identify circumstances when HOME might not be what you want. Investigate accordingly. Any progress? Posting your sudoers...
View ArticleComment by Kamil Maciorowski on How to get reputation to comment on my own post
It seems this is your only post so far on Super User. I bet you can comment here. Have you created multiple accounts? and do you expect the site to magically recognize them all as a single "you"?
View ArticleComment by Kamil Maciorowski on Can I login into sddm as some user, not...
@NikitaKipriyanov Implemented in this alternative solution.
View ArticleAnswer by Kamil Maciorowski for Can I login into sddm as some user, not...
Solution with PAM, policy configured in sudoersCreate /usr/local/bin/use-own-password with the right ownership and permissions. The following shell code will do it:sudo sh -e -c 'cat >...
View ArticleComment by Kamil Maciorowski on What is the difference between bash arrays?
Note: the "nifty way" contains -print0 and your code does not.
View ArticleComment by Kamil Maciorowski on SSH upgrade proxy connection to direct...
"maybe I can port forward on my own side and tell the server to connect through there?" – You probably can establish a new connection this way. This is not "upgrading the [old] connection" though. What...
View ArticleAnswer by Kamil Maciorowski for Why am I getting a "no such file or...
Shells commonly used in Linux/Unix replace tilde (~) with the value of the HOME shell variable, but only if the tilde is unquoted and unescaped.The whole mechanics is more complicated, with supported...
View ArticleComment by Kamil Maciorowski on Zsh script to open multiple Excel files?
If the shell interpreting the script truly does not get to echo … then it's a problem (bug?) with the shell; it shall get there no matter what opens do. Is this an old Bash? Try an up-to-date shell....
View ArticleComment by Kamil Maciorowski on Zsh script to open multiple Excel files?
Any insight why this should work? The OP claimed that their original code, when the problem happens, never gets to and past echo "Foobar opened.". Why shall it get to your wait then? In other words: if...
View ArticleAnswer by Kamil Maciorowski for SSH upgrade proxy connection to direct...
A pretty standard method of solving this (at least in case of IPv4) is as follows:You ssh into the remote host via a proxy.Once there, you ssh back to your local computer without a proxy. This requires...
View ArticleComment by Kamil Maciorowski on Display mystery: Danish characters in cygwin...
If ge and ge | cat truly cause different output to appear then it seems your ge generates different output, depending on if it's writing to a terminal or to a pipe. I found this question: msvc compiled...
View ArticleComment by Kamil Maciorowski on Can SSH use Push Authentication?
sshd from OpenSSH can use PAM. Then it's about what PAM modules you can write or find and use.
View ArticleComment by Kamil Maciorowski on Display mystery: Danish characters in cygwin...
This is a clue, but not an answer. We still don't know why output of exactly the same characters shows two different results for the OP.
View ArticleComment by Kamil Maciorowski on How to efficiently count instances of strings...
(1) What is the OS? (2) Shall aaaa count as 2 occurrences of aa or as 3 occurrences of aa? (3) What have you tried and where are you stuck?
View Article