Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-08-2002, 10:54 PM   #1
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.
Old 12-08-2002, 11:39 PM   #2
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, 10:59 AM   #3
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 ???

Old 12-09-2002, 11:11 AM   #4
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, 11:26 AM   #5
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!


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 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 07:10 AM
finger and cut command Craig Bowes Linux - Newbie 3 10-09-2004 01:49 PM
"finger" shows logged out users. webboss Linux - Networking 1 06-11-2004 02:19 PM
"who" shows logged in users that are not there... Linux - General 3 05-17-2004 07:33 AM
finger - command rob99 Linux - Networking 2 02-02-2003 12:40 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:25 AM.

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