LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-16-2015, 01:29 AM   #1
suyog1pathak
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Rep: Reputation: Disabled
Exclamation Linux user login and logout details and process.


Hello,
I am creating small logic for recording linux users terminal session but for that I need to study whole process of how the linux user login into the system all background process,
all environment variables in this scenario, is there someone who can help me out of this.?
 
Old 12-16-2015, 10:55 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by suyog1pathak View Post
Hello,
I am creating small logic for recording linux users terminal session but for that I need to study whole process of how the linux user login into the system all background process,all environment variables in this scenario, is there someone who can help me out of this.?
We can help you if you have SPECIFIC questions, but there is a wealth of information regarding the Linux login process you can (and should have), researched on your own. For example, the first two hits in Google for "how does the linux login process work" are:
http://www.linuxnix.com/how-login-pr...work-in-linux/
http://www.comptechdoc.org/os/linux/...x_hllogin.html

...with many more.
 
Old 12-17-2015, 10:52 PM   #3
suyog1pathak
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Unhappy

But I still haven't got the answer. How can I run "exit" command on users tty when the user hits "X" button of putty..???
 
Old 12-17-2015, 11:14 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Quote:
Originally Posted by suyog1pathak View Post
But I still haven't got the answer. How can I run "exit" command on users tty when the user hits "X" button of putty..???
That was not the question you asked - not remotely.

That is a putty question, not a Linux login question. You would have to see if putty allows you to issue remote commands in response to actions such as the X button.
 
Old 12-17-2015, 11:43 PM   #5
suyog1pathak
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Question

nope....I am asking for the logic....how can I run exit command while user session closed.
 
Old 12-17-2015, 11:49 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Nope. You cannot run any command while the user session is closed.

You will need to provide a much more complete description of what you are trying to do before anyone can provide help.

Please see this article for thoughts on asking a complete quesstion.

Last edited by astrogeek; 12-18-2015 at 12:01 AM.
 
Old 12-18-2015, 09:32 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by suyog1pathak View Post
But I still haven't got the answer. How can I run "exit" command on users tty when the user hits "X" button of putty..???
...and asking for handouts, rather than reading the abundant research, won't get you the answer either.
Quote:
Originally Posted by suyog1pathak
nope....I am asking for the logic....how can I run exit command while user session closed.
...and if this is YOUR PROGRAM, isn't it up to YOU to write the logic??? And common sense will tell you that you can't run ANY commands if there isn't an active session. This is very much like asking, "How do I load a web page, after I close my browser?"
 
  


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
[SOLVED] Last login all user details with last login date needed gadhave.vikas Other *NIX 3 06-10-2011 01:50 PM
user login details abhijeetdutta Linux - Server 7 10-24-2009 04:09 AM
notification of user login and logout JudyL Programming 9 08-31-2007 10:47 AM
Logout process - can't get back the login screen DarkChief Linux - General 4 04-21-2004 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:36 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