LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-01-2003, 02:45 PM   #16
anjan_bhushan
LQ Newbie
 
Registered: Jul 2003
Distribution: Suse, Mandrake, Redhat, Knoppix ,Solaris, Debian,Vector
Posts: 16

Rep: Reputation: 0

Method 1
1. tail -f /var/log/messages

Method 2
2. grep LOGIN messages*
 
Old 08-01-2003, 10:36 PM   #17
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Original Poster
Rep: Reputation: 30
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?
 
Old 08-01-2003, 11:02 PM   #18
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
in /etc/inittab replace id:5:initdefault: by id:6:initdefault: it should be good (terran in brood war roxe)
 
Old 08-02-2003, 12:42 AM   #19
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Quote:
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)
 
Old 08-02-2003, 01:12 AM   #20
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
Quote:
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)
in other words DONT DO THAT!!!!!!!!!
 
Old 08-02-2003, 01:21 AM   #21
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
No do that if you now howto recover

But I think the questions is a joke : `howto kick root from my computer`
 
Old 08-02-2003, 08:03 AM   #22
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.


*Thanks to Strike for alerting me about this one.
 
Old 08-02-2003, 08:06 AM   #23
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
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.
 
Old 08-02-2003, 02:37 PM   #24
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Original Poster
Rep: Reputation: 30
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.

Thanks to all.
 
Old 08-02-2003, 02:42 PM   #25
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The while loop I suggested should show when a user logs in or out:
Quote:
Originally posted by david_ross
If a user logs out the line should begin "<" and if they login it should begin ">".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I "kick" a user who is logged in? LinuxSeeker Linux - General 11 06-03-2005 07:47 AM
chrooted user: "write" and "talk" don't work. ldp Linux - Software 2 04-12-2005 02:05 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 01:42 AM
Shorten a Qmail user name to "user" instead of "user@domain.com" anorman Linux - Software 0 12-12-2003 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration