933 reputation
315
bio website gipson-family.net
location Austin, TX
age 38
visits member for 3 years, 9 months
seen Sep 8 at 14:19

Dec
13
comment Reasons for missing IP info in `last` output on pts logins?
Does the output of last -i mpenning show the blanks?
Jun
13
comment How to debug ~/dotfiles causing gdm login to gnome 3 to fail
I had this problem, I can confirm if for F16 and F17 as well. I removed my 'tmux list-sessions' from my .bash_profile and the problem went resolved. What are your thoughts on this? Do you think the problem is in tmux, or in gnome? THANKS
Mar
29
comment `find` command not available in web host, how to implement a delete based on modification time using other commands?
"I absolutely disagree with your thou shalt never take on it. Best practices are not absolutes," I agree, absolutely! Except for the part about the find recursion. Can't assume that there were no folders, because it's unspecified; and can't guarantee the structure of the backups won't change in the future to add folders. The request was a replacement for the find statement, so I provided one which more closely emulates this. This isn't important in a one-off situation, but say he has many servers, and needs a find replacement for one of them. Gotta keep it same as possible.
Mar
28
comment `find` command not available in web host, how to implement a delete based on modification time using other commands?
I see you didn't read the link... find works recursively (without -maxdepth 1) so it's safe to assume nothing.
Mar
28
comment `find` command not available in web host, how to implement a delete based on modification time using other commands?
Never, ever, ever, ever attempt to parse the output of ls. Use stat if available. mywiki.wooledge.org/ParsingLs Different flavors of stat use different switches, but most of them have printf-like formatting codes available.
Mar
22
comment openvpn client connection is not establishing
can you connect to the vpn server locally, e.g. run the client on the same machine the server is on, and connect...?
Mar
18
comment What's the best way to schedule a command to run, assuring a previous set of commands have completed?
Ah.. So the "signal" isn't actually a signal -- It's an SSH forced command.
Mar
17
comment What's the best way to schedule a command to run, assuring a previous set of commands have completed?
example code? can you provide an example?
Mar
16
comment What's the best way to schedule a command to run, assuring a previous set of commands have completed?
Possibly better to change the folder naming convention. Rather than have day0, day1 ... dayN where the number N is "days ago" maybe better to have day_YYYYMMDD format (eg. dest="day_$(date +%Y%m%d)"). You could possibly do both by using symlinks day0 day1 ... dayN to point to the date-based folder names, and changing the symlinks instead of the actual directories.
Mar
16
comment Expert iptables help needed?
@MadHatter regarding your ssh 60 second window, if you keep a "Master" connection open, then all your SSH traffic will reuse the existing connection, which prevents extra connects. Look at the ControlMaster and ControlPath options in ssh.
Jul
13
comment Copy content of one folder to another in linux
I wish to note that the cp command itself, never 'sees' the asterisks, but they are expanded by the shell prior to cp being run. This means if there are 20 items in /path/to/test/ then cp is run with its -pr switch, plus 21 filenames/paths. The last one listed is treated as the destination. This means that using *.* will also pickup folder names that contain an internal dot. If you want to also get hidden files and folders set the bash dotglob option shopt -s dotglob. You can test the effect of globbing using the echo command, e.g. echo * and echo *.*
Apr
21
comment Finding out who hacked my site
Once your system is 'owned,' your backups are your only trustable recourse, but be ware - whatever vulnerability led to this breach, also exists in your backups. For extra credit, you could setup a honeypot using the backups and capture some data to see how the breach happened (if they attackers re-attack your system after a restore).
Apr
21
comment Finding out who hacked my site
As to your 'Biggest Question,' you probably can't track the source of the breach, as foreign systems are likely involved, and they won't waste time on small beans. Try not to take the breach personally, though. All that aside, your logs are the place to start, assuming they are unaltered. Also your service provider for the server might have some limited traffic data logged (like IP addresses and date stamps).
Apr
6
comment Detecting restart since last run in a shell script on Linux?
CAVEAT: This will improperly return TRUE also, if the script/executable has been edited/built since the last reboot. This can also be used against nonexecutables/scripts to test whether they've been accessed since boot.
Apr
6
comment Is there a way to turn off client browser caching for specific websites?
@Mircea This IS a browser agnostic solution. I just provided a gratuitous example using IE. Many other browsers do have an option to disable caching SSL, but the settings are in different places.
Apr
6
comment running tar completely locks up mysql
@Paxxil Let's see the actual tar command you are using. Are you using the -z option? How about the -j option? Does it make a difference either way? What about running tar without using compression? If running without compression works okay, what about piping tar into gzip?
Apr
6
comment Is there a way to turn off client browser caching for specific websites?
This would work, IF GollyJer had the ability to modify the website. I gather he doesn't based on his question.
Apr
3
comment cloning CENTOS server (image) to DVD burner / External Hard Disk or over the network
Do you have physical access, or network access?
Mar
24
comment snmp linux timezone
What format is the raw time data coming in? Sometimes the time zone is embedded (e.g. date command).
Mar
24
comment Clarify something about Linux directory permissions
@thomasrutter - AFAIK, you is correct. It's a fine point but it must be made, as some admins could make assumptions about file access based off the output of ls -l. The lesson for those admins is that when securing files, also pay attention to the link count in the output of ls. The GNU find utility also is helpful here when used with the -samefile option which helps to ferret out other hardlinks to the same file. I use find . -type f -links +1 -exec ls -l {} \; to find all files with multiple hard links or the -samefile option to find other links to the same file.