Earlier quoted context omitted.
The primary bootloaders for Linux distributions are http://en.wikipedia.org/wiki/GNU_GRUB and http://en.wikipedia.org/wiki/LILO_(boot_loader) with a large edge in popularity to GRUB these days. Unless it's a fork or modification, GRUB works like this: http://www.gnu.org/software/grub/manual Single User Mode isn't unique to CentOS/Redhat, or even Linux. In fact, the concept behind it isn't even unique to Unix: One of…
I'm aware of GRUB and LILO. But as bootloaders, I didn't realize they were able to modify the Linux root password so easily. The question still stands: is it possible in any flavour of Linux to change the root password by modifying the kernel parameters at boot-time?
Lazy Linux: essential tricks for admins
41–50 of 54 posts
Re: Lazy Linux: essential tricks for admins
#42Earlier quoted context omitted.
My general attitude to passwords is "Never choose something you'd be ashamed to recite to your mother over the phone", since you never know when you'll be in a position where you may have to do exactly that.
As an information assurance guy, I'd encourage users to use the most embarassing possible passwords, since you should never share them. If you need to make resources available to more entities, do it by sharing access, not authentication.
Re: Lazy Linux: essential tricks for admins
#43Earlier quoted context omitted.
I'm aware of GRUB and LILO. But as bootloaders, I didn't realize they were able to modify the Linux root password so easily. The question still stands: is it possible in any flavour of Linux to change the root password by modifying the kernel parameters at boot-time?
On any flavor of linux that uses GRUB or LILO it's possible to modify the kernel parameters at boot time to enter single-user mode. Once you're in single-user mode you have full root privileges and environment and can change any passwords or files you like.
Is the same true for BSDs, Solaris, et al?
Re: Lazy Linux: essential tricks for admins
#44Earlier quoted context omitted.
On any flavor of linux that uses GRUB or LILO it's possible to modify the kernel parameters at boot time to enter single-user mode. Once you're in single-user mode you have full root privileges and environment and can change any passwords or files you like.
Ah, okay. Thanks for explaining that. I didn't realize it was possible to get into single user mode without the password for any Linux. Is the same true for BSDs, Solaris, et al?
FreeBSD: http://www.cyberciti.biz/tips/howto-freebsd-reset-recover-ro...
OpenBSD: http://www.openbsd101.com/tipstricks.html#tt1
Solaris: http://www.cyberciti.biz/tips/solaris-boot-system-into-singl...
Re: Lazy Linux: essential tricks for admins
#45Hee, things I didn't think I'd ever see on ibm.com, #12234 in a series.
People with company songbooks and nice ties must be spinning in their graves
Re: Lazy Linux: essential tricks for admins
#46Earlier quoted context omitted.
lsof, ngrep, history (only found out this one a month ago after 6 years of being a sysadmin)
What terrible names. Sorry, but from a non-Unix perspective, symbols such as 'lsof' and 'ngrep' seem arbitrary and nonsensical.
When ls utility was created standard RAM was 10KB and power computers looked like this http://images.appleinsider.com/leopard-preview-server-1.jpg
I guess if your IO interface is a real dead-tree paper then each character counts.
Re: Lazy Linux: essential tricks for admins
#47Earlier quoted context omitted.
palish has a point to the extent that lsof is so infrequently used that it would do no harm to give it a more descriptive name. Nonetheless, I entirely agree with you about ls, and about sticking to the conventions that have developed around unix.
There's a tribal aspect, too; not to mention jargon as a barrier to entry. And what professional wants to forgo hard-won knowledge? That said, I kind of like the weird names, esp grep. (Wasn't that in Stranger in a Strange Land or something?) But I do object to inconsistent options. One example is: mkdir -p a/b/c This will make all three nested directories, if needed; but there is no equivalent: mv -p x a/b/c/y There…
Re: Lazy Linux: essential tricks for admins
#48Earlier quoted context omitted.
My general attitude to passwords is "Never choose something you'd be ashamed to recite to your mother over the phone", since you never know when you'll be in a position where you may have to do exactly that.
As an information assurance guy, I'd encourage users to use the most embarassing possible passwords, since you should never share them. If you need to make resources available to more entities, do it by sharing access, not authentication.
Re: Lazy Linux: essential tricks for admins
#49To get back a hosed screen, also try: stty sane ^j (That's Ctrl-j there.) You might be flying blind, but just do it and you might get your screen back. You probably know this, but to rescue a hosed system with Knoppix or similar live-cd: - Boot from CD. - Open root console. - Mount your usual root partition: mount -t somefs /dev/hda1 /mnt/oldsys - chroot /mnt/odlsys /bin/bash Showed that to another admin who'd lost a…
How Knoppix saved the day
Re: Lazy Linux: essential tricks for admins
#50Earlier quoted context omitted.
There's a tribal aspect, too; not to mention jargon as a barrier to entry. And what professional wants to forgo hard-won knowledge? That said, I kind of like the weird names, esp grep. (Wasn't that in Stranger in a Strange Land or something?) But I do object to inconsistent options. One example is: mkdir -p a/b/c This will make all three nested directories, if needed; but there is no equivalent: mv -p x a/b/c/y There…
Grok, you're thinking of.