Proverbs, aphorisms, quotations (English) | by Linux fortune |
There has also been some work to allow the interesting use of macro names. For example, if you wanted all of your "creat()" calls to include read permissions for everyone, you could say #define creat(file, mode) creat(file, mode | 0444) I would recommend against this kind of thing in general, since it hides the changed semantics of "creat()" in a macro, potentially far away from its uses. To allow this use of macros, the preprocessor uses a process that is worth describing, if for no other reason than that we get to use one of the more amusing terms introduced into the C lexicon. While a macro is being expanded, it is temporarily undefined, and any recurrence of the macro name is "painted blue" -- I kid you not, this is the official terminology -- so that in future scans of the text the macro will not be expanded recursively. (I do not know why the color blue was chosen; I'm sure it was the result of a long debate, spread over several meetings.) -- From Ken Arnold's "C Advisor" column in Unix Review | |
UNIX Trix For those of you in the reseller business, here is a helpful tip that will save your support staff a few hours of precious time. Before you send your next machine out to an untrained client, change the permissions on /etc/passwd to 666 and make sure there is a copy somewhere on the disk. Now when they forget the root password, you can easily login as an ordinary user and correct the damage. Having a bootable tape (for larger machines) is not a bad idea either. If you need some help, give us a call. -- CommUNIXque 1:1, ASCAR Business Systems | |
You know, if you really do not understand the implications of running everything with permissions equivalent to root - get the hell out of any UNIX-related programming until you learn. - Al Viro explaining the merits of doing everything as root | |
By the way, I can hardly feel sorry for you... All last night I had to listen to her tears, so great they were redirected to a stream. What? Of _course_ you didn't know. You and your little group no longer have any permissions around here. She changed her .lock files, too. -- Kevin M. Bealer, commenting on the private life of a Linux nerd |