Reputation
611
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 10
Newest
 Yearling
Impact
~153k people reached

Apr
6
awarded  Yearling
Oct
30
answered Allowing only specific users to login via ssh at one port and others to login via another port
Oct
29
comment Allowing only specific users to login via ssh at one port and others to login via another port
I don't see how your answer distinguishes remote users from local users. If someone in the lusers group but not in the rusers group generates a keypair and updates their ~/.ssh/authorized_keys, they will be able to log in from remote.
Feb
22
awarded  Excavator
Feb
22
revised What are guarantees for concurrent writes into a named pipe?
typo fix (rational -> rationale) and link to rationale
Feb
22
suggested approved edit on What are guarantees for concurrent writes into a named pipe?
Feb
19
awarded  Nice Answer
Dec
10
comment how to write a udev rule to remove a tag?
udev supports removing tags via TAG-="foo" as of v217, which was released 2014-10-27. (commit, changelog entry)
Nov
22
accepted Get bash DEBUG trap to execute only once for and/or lists?
Sep
19
accepted how to write a udev rule to remove a tag?
Sep
19
comment how to write a udev rule to remove a tag?
Thank you, I was unaware of last_rule. This works only if my rule is evaluated before the TAG+="uaccess" rule. I think I can guarantee this ordering if my rules filename is lexically sorted before 70-uaccess.rules, right? (e.g., name it /etc/udev/rules.d/69-uaccess-preempt.rules)
Sep
19
asked how to write a udev rule to remove a tag?
Jun
30
awarded  Yearling
Apr
17
comment Get bash DEBUG trap to execute only once for and/or lists?
@StephaneChazelas: Thanks for the link. It looks like preexec.bash basically does what I do in my answer (via the preexec_interactive_mode variable), so maybe the approach in my answer is as non-kludgy as it can get. I do wish bash had something like zsh's preexec() hook.
Apr
17
answered Get bash DEBUG trap to execute only once for and/or lists?
Apr
17
asked Get bash DEBUG trap to execute only once for and/or lists?
Apr
14
awarded  Notable Question
Jan
8
comment Using while loop to ssh to multiple servers
The -u option is not supported by POSIX, and thus should not be used for #!/bin/sh scripts; use read HOST <&10 instead. Also, POSIX only requires shells to support file descriptors 0 through 9, so 10<servers.txt can't be used if the script is to be strictly conforming.
Jan
8
comment Using while loop to ssh to multiple servers
Another alternative: exec 3<&0; while read HOST; do ssh $HOST "uname -a" <&3; done <servers.txt; exec 3<&- This makes file descriptor 3 a backup of the original stdin, then uses it for ssh's stdin, then closes the backup FD when done. This works on any POSIX-compatible shell.
Aug
5
revised Why not use “which”? What to use then?
add section headings to make it easier to skim the answer; add a tl;dr section at the top for people who just want to know the answer