Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi, I was wondering if someone could tell me what boot file to edit to run a superuser script for all users. I've tried inittab, .bashrc and .bash_profile. So far my script has only worked in the .bashrc for root, and I'd really like a startup script for all accounts- specifically my normal user account. I can su to root and execute it manually, but I'm trying to automate the running of the script WITHOUT a dangerous SUID script. I've heard some initial boot configuration scripts have root access by default, so I'd like to run it from there so it's still running when any user logs in. Also, if it's only run once at boot that would prevent the ERROR: INSTANCE ALREADY RUNNING messages whenever I su to root and the .bashrc file tries to run the script again(though I could setup my own "if not first instance" script, of course). It's my laptop brightness script to turn that down so I don't go blind(ack). Any help would be greatly appreciated. I suppose this isn't TOTAL newbie fodder, but it's newbie-ish for sysadmin considerations. Thanks for reading, hope you help!
P.S. Any books on this subject(general system administration/hacking) you could recommend? I've got Running Linux, 4th edition and Learning the Bash Shell, but those alone aren't cutting it anymore. Thanks!
you really need to explain what you're actually trying to do, rather than asking for ways to achieve what you think you need to achieve... sounds a lot like you actually just want to run somethign on boot, not on a per user basis.
Hey Acid_kewpie- yes, I want to run something on boot. I was trying to say that I hoped it would persist in running for any user(and I don't see why it wouldn't, so dumb phrasing). To execute something on boot, would I make an rc file for it or something? Would I stick it in sysinit instead of inittab? If it helps, I'm running the latest version of Mandriva.