Reputation
2,972
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
3 30 65
Newest
 Announcer
Impact
~298k people reached

Feb
6
awarded  Announcer
Feb
5
revised if always false with equal variables
added 4 characters in body
Feb
5
comment How to write an abort-on-error script without adding `|| exit $?` to every line?
I can't test this right now, but in that case +1 and welcome to unix.SE :)
Feb
5
comment How to write an abort-on-error script without adding `|| exit $?` to every line?
Nice, but since you mention ksh, does this also work in bash?
Feb
3
awarded  Favorite Question
Jan
17
awarded  Popular Question
Jan
15
awarded  Popular Question
Dec
1
awarded  Notable Question
Nov
27
answered How do I reference all files including hidden files?
Nov
16
awarded  Notable Question
Nov
7
awarded  Notable Question
Nov
4
comment Passing root password safely in a shell script
@Caleb So the $password part is the culprit? One could of course write a small Python script, but I wonder if bash can't handle this on its own...
Nov
4
comment Passing root password safely in a shell script
@Caleb oh, that's the very thing I wanted to avoid this way m-/ so bash won't redirect e.g. /dev/fd0 or whatever device <$(...) uses without mentioning the password? Or is it due to read | echo which can hopefully be solved more elegantly anyway?
Nov
4
comment Passing root password safely in a shell script
+1 for suid, tough I think some Linux versions will ignore suid for plaintext scripts for security reasons
Nov
3
answered Passing root password safely in a shell script
Oct
29
revised How to achieve conditional PAM authentication?
added 482 characters in body
Oct
29
revised How to achieve conditional PAM authentication?
added 482 characters in body
Oct
29
comment How to achieve conditional PAM authentication?
As a side note, once you logged in using your SSH passphrase, it will also be available to your other sessions' ssh-agent! Fixing this if desired would probably require more effort
Oct
29
revised How to achieve conditional PAM authentication?
added 308 characters in body
Oct
29
asked How to achieve conditional PAM authentication?