LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-08-2002, 09:54 PM   #1
falconxlc
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Rep: Reputation: 0
finger command shows never logged on...but its not true


when i do finger <user>, i get

$ finger root
Login: root Name: root
Directory: /root Shell: /bin/bash
Never logged in.
New mail received Sun Dec 8 04:05 2002 (EST)
Unread since Mon Nov 18 19:55 2002 (EST)
No Plan.


but i logged as root account many times before this, and the last command verifies it...

$ last root
root :0 Tue Dec 3 22:19 - 22:20 (00:00)
root :0 Tue Dec 3 22:19 - 22:19 (00:00)


this happens for all users, not only root. How do i get the finger command to show the last login for every user (instead of using last command)?

i have redhat 8.0.
thx
 
Old 12-08-2002, 10:39 PM   #2
ubien
Member
 
Registered: Oct 2002
Distribution: RH 8.0 and fluxbox
Posts: 122

Rep: Reputation: 15
Hmmmm, I have the same thing happening here. I don't think regular users have the priveledge to get that info.
 
Old 12-09-2002, 09:59 AM   #3
falconxlc
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Original Poster
Rep: Reputation: 0
well if i log in as root and i do a finger on a user i get the same output...

i searched other forums and they were saying something about sharing the utmp file or wmup file or something with the finger command. cause, the last command looks into that file for info..but the finger command doesnt.....but they weren't very clear as to how to fix it.....

was wondering if anyone here wold know about this ???

thx
 
Old 12-09-2002, 10:11 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
They are probably referring to the permissions of the utmp file. Usually it's owned root.root so you would have to allow normal users at least read access to the file.
What does 'ls -l /var/run/utmp' give you?
 
Old 12-09-2002, 10:26 AM   #5
falconxlc
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Original Poster
Rep: Reputation: 0
answer found

u have to make lastlog global read

so u do this in rh 8

chmod 644 /var/log/lastlog

problem solved!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
True Command Line...arrrgh help hitman_et Linux - Newbie 7 10-31-2004 06:10 AM
finger and cut command Craig Bowes Linux - Newbie 3 10-09-2004 12:49 PM
"finger" shows logged out users. webboss Linux - Networking 1 06-11-2004 01:19 PM
"who" shows logged in users that are not there... shadow.blue Linux - General 3 05-17-2004 06:33 AM
finger - command rob99 Linux - Networking 2 02-02-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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