Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313
Original Poster
Rep:
I think a compromise is the best way to go. I will put the while loop in a file that is executable and place the file in an area that starts when the server starts up. This way it should run whether or not anyone is logged in.
Whould anyone know where such a file could be placed. Since I am just coming over from XP, the only analogous place I know of is the windows startup folder. Does RedHat have a similar file or area that if an executable script were placed it would run because the server started?
Originally posted by brice2nice in /etc/inittab replace id:5:initdefault: by id:6:initdefault: it should be good (terran in brood war roxe)
Hello Mr. Troll, welcome to Reported-Postville.
(note: 6 is the "reboot" runlevel, so basically he's telling you how to make it so that every time your computer starts to boot, it tells itself to restart again)
Originally posted by Strike Hello Mr. Troll, welcome to Reported-Postville.
(note: 6 is the "reboot" runlevel, so basically he's telling you how to make it so that every time your computer starts to boot, it tells itself to restart again)
Brice2nice, as moderator I am not at all amused by your response.
Jocular as it may seem at first glance it really is not, because you fail to hint at the effect of doing so. And I will not allow anyone here to play "fun" games with answers.
Even though it's one's own responsability to research the effect of answers given before implementing them, we will also have to consider members who are less accustomed doing so. They depend on their fellow LQ members helpfullness and knowledge to show them the "right" answer.
Your answer can only be considered as a false statement.
Please don't do this again. Give answers that are truthfull, as accurate as possible, helpfull and in general of a constructive nature. If you cannot do that please move on to another question, or another board.
Originally posted by jdruin I think a compromise is the best way to go. I will put the while loop in a file that is executable and place the file in an area that starts when the server starts up. This way it should run whether or not anyone is logged in.
Whould anyone know where such a file could be placed. Since I am just coming over from XP, the only analogous place I know of is the windows startup folder. Does RedHat have a similar file or area that if an executable script were placed it would run because the server started?
Ignore all the inittab stuff. Put the while loop (complete with &) at the end of "rc.local". Then put the tail command in the ".bash_profile" file in your home directory (ending in &). This will start the while loop when the computer starts then the tail command will start when you login.
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313
Original Poster
Rep:
Hey david_ross:
Thanks. That was exactly what I was looking for.
Thanks to Strike and others for the headsup on the other response.
As a nice addition to this project, would there be a file that executes if the user logs off? I was thinking I could add lines to the log file in the same manners as prescribed before and still use the tail command as well. Should work exactly the same but I am not sure if RH has an event/file that is triggered when a user logs out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.