LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2002, 07:59 AM   #1
godwin_73
LQ Newbie
 
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16

Rep: Reputation: 0
tracking user,when logs in


hello,
I want to track which user has logged in to my logon server(linux).We have 15 client machine (window98) who log into the logon server using username and password.
My aim is to give user a welcome message through winpop when he logs on to the logon server.
I am able to give winpopup message from my logon server to all the user individually through smbclient -M <username>.
Now I am not able to find which script in my linux box validate and allows a user to logon.If I find this i can write a script which can do the above mentioned things.Please help how I can do this.
 
Old 03-06-2002, 06:07 PM   #2
kervin
Member
 
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 31
I don't know if samba does it but, programs that login users into the system usually update the 'utmp' file.

Also if you are writing a app, there's an API to access the utmp database. Try 'man utmp' for more info.

Applications like 'last' ( the program that tells you when a user last logged into a system ) use the utmp database to get you the information you're querying. There are others.

More simply, if the user is logging into the linux box directly, you can put the welcome script in their '.login' or '.bashrc' files.

You can write a script that monitors the samba logs using 'tail -f'?

It all depends on what you meant by 'logon', I guess.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Firefox logs user out? Where are error logs? case1984 Linux - General 0 10-09-2004 03:22 PM
Tracing which user logs onto which PC kenji1903 Linux - Networking 13 09-13-2004 11:04 AM
Mouse focus changes after user logs out. lumpfish Slackware 4 06-22-2004 08:06 PM
c prog that logs user off... acromi Programming 11 02-06-2002 12:54 AM
user tracking in redhat godwin_73 Linux - Networking 1 11-29-2001 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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