16,596 reputation
75792
bio website shawnjgoff.com
location Tampa, FL
age 33
visits member for 4 years, 3 months
seen Nov 3 at 14:43

I've grown up with computers around me my whole life. I started programming when I was a kid, and stuck with it ever since. I came across Linux around 1999 and have enjoyed working with it ever since.

For a job, I get to write software that runs on embedded Linux devices. I do everything from working on low-level drivers to writing shell scripts and even web apps.


Oct
28
comment Ask root for password when using su command
Ah, I see. So you could probably exclude su from the ALL tag to make this work.
Oct
28
comment Ask root for password when using su command
I doubt this is possible, and it doesn't make sense. Why do you want root to be prompted for user1's password? It doesn't actually protect user1's account from root when root doesn't know the password.
Oct
27
comment case-insensitive search of duplicate file-names
@JamieKitson Say, what? Look again :-) I didn't know you had posted an answer other than the comment.
Oct
26
comment case-insensitive search of duplicate file-names
@derobert - that's definitely better - I've somehow blocked out that feature from my brain because it's just not available in the environment I usually use. Edited answer to include it.
Oct
26
comment case-insensitive search of duplicate file-names
@JamieKitson That will fail if you have filenames with newline characters.
Sep
26
comment How to list files and directories with directories first
You can run ls --version to find out which one you have.
Aug
29
comment Execute a process in the current pane, redirecting stdio to/from the pane
I don't know how I could use that to accomplish my goal. I want to dump stdout from a command into a window, and dump the window's output into stdin of the command.
Aug
21
comment Why can't I use the REJECT policy on my iptables OUTPUT chain?
That command in the thread is incorrect; -p is for matching on a protocol; he meant -A like my answer says.
Aug
7
comment Is it possible to disable verbose in the middle of running?
@Tim I haven't found an official resource saying what it is, but from experimentation, the field on the right (that shows the command) works in bash and zsh, but not in ash. Sometimes the pid also works.
Jul
15
comment Is Linux kernel free to modify?
@PatkosCsaba Editing is encouraged on this site. If you believe it is better without it, you are free to change it. It is best if the answer contains the important relevant information - not when the information is distributed in the comments, as those are less frequently read.
Jul
2
comment Concise way to output to file if argument is given, to stdout otherwise
That's the same as @michael-mrozek's except it doesn't check for the existance of $1 before using it. Which is okay; what I really want is touch $1 &&... instead, to make sure I can create/write to the file.
Jul
2
comment shell backup script, missing `]`
Ah, that -n is part of set; the shell will pass appropriate commandline switches through set.
Jul
2
comment shell backup script, missing `]`
The only thing I can think is that [ is not so much part of shell syntax, it's actually a program invocation (even though it's usually a program built in to the shell). I would imagine the -n doesn't give any guarantees about correct command invocation.
Jul
2
comment shell backup script, missing `]`
I've never seen the -n option for Bash. It's not in the GNU manual or the BSD manual.
Jun
24
comment How can I change the battery icon in the systray?
@UlrichDangel That would just add another battery to the system tray unless I also move away from using gnome-settings-daemon.
Jun
24
comment How can I spy on X client messages?
That's kind of what I'm trying to solve - what application is putting that there? I have the class window class name: gnome-power-manager, but there is no aplication called that. There is nothing matching "power" running as a daemon.
Jun
23
comment How can I spy on X client messages?
A [client message][1] seems to be a type of event. The freedesktop [system tray spec][2] specifically talks about an "x client message". In any case, I have the correct window, but xev is not giving my any information about what program is sending what event to that window, but its status is definitely being updated by something. [1]: tronche.com/gui/x/xlib/events/client-communication/… [2]: standards.freedesktop.org/systemtray-spec/…
Jun
20
comment How does one change the delay that occurs after entering an incorrect password?
Instead of a new module (suggested in my previous comment), I used pam_unix with the nodelay option and pam_tally2 with deny=5 unlock_time=15; this allows for 5 immediate retries, but denies access (even with a successful password) for 15 seconds. I still intend to try writing the described model, but now it's a back-burner project, because this would not be suitable if your primary access to the system is network-based since it makes a DOS attack trivial.
Jun
19
comment Rake - “bundle exec” - how can I avoid `bundle exec` with my `rake spec`
Check out the Ruby Version Manager. rvm.io
Jun
17
comment Error while cross compiling using crosstool-ng. How to debug?
What did you do to prompt this message? Was it make install by any chance?