dufault.info

Ramblings of a phone weenie, Linux sysadmin, and other things geeky

Check out my new article on itnewb: Easy Logins With SSH On Linux!

I wrote an article for a friends site, check it out: Guide To Easy Logins With SSH On Linux
I didn’t know that article writing took so long — the amount of writing, rewriting, critiquing, etc etc was a new experience. I’ll have to keep writing articles — teaching others is a good way to [...]

Logging all BASH commands to history, and keeping people from deleting/emptying it

Usually on Linux server, we have issues with logging the commands that our users are running, especially with BASH. BASH doesn’t log the commands as soon as they’re executed, and the user can do a number of simple things to prevent the log from ever being written to the disk, preventing you from knowing [...]

Enable date-stamp in your .bash_history file

While it’s easily cleared by a malicious person, this can easily extend the usefulness of your history file with the information of when you ran that command.
This works in bash v3 and up.
If you’d like to add the timestamping to all users on the machine, the file you’d want to edit is probably /etc/profile.  If [...]

Compiling a Shell Script To Obscure the Source

Well, there’s been a few times that I’ve written a shell script that was really neat.  Something that other people would have paid for a copy of. (I was too lazy to rewrite it in another language.) Up until now, I wasn’t aware you could compile a shell script, in the attempts from keeping people [...]