LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2013, 04:48 AM   #1
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Rep: Reputation: 1
"finger user1" pointing user1 and user2 as well why so?


Hello guys,



on Solaris 10 os, I have this problem,



When I finger one user it points to 2 users why so,



Code:
-bash-3.2$ finger machova
Login name: machovp                     In real life: raju Machova (LIB FinAcct User)
Directory: /users/cz/182/machovp        Shell: /usr/bin/ksh
Never logged in.
No unread mail
No Plan.

Login name: machova                     In real life: ram Machova (Liberec Production User)
Directory: /users/cz/182/machova        Shell: /usr/bin/ksh
Never logged in.
No unread mail
No Plan.
However their home directory is diferent.



Code:
-bash-3.2$ grep machova /etc/passwd
machova:x:4828:102:ram Machova (System1 Production User):/users/cz/182/machova:/usr/bin/ksh
-bash-3.2$ grep machovp /etc/passwd
machovp:x:3689:102:raju Machova (System2 FinAcct User):/users/cz/182/machovp:/usr/bin/ksh
-bash-3.2$ sudo ls -ltra /users/cz/182/machova


Will this cause any issue? first tell me,

I checked their respective home directories the owner and group owner are proper.



Please advise.



Thanks,

Manali.
 
Old 04-26-2013, 05:09 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
See http://linux.die.net/man/1/finger
Quote:
-m' Prevent matching of user names. User is usually a login name; however, matching will also be done on the users' real names, unless the -m option is supplied. All name matching performed by finger is case insensitive.
 
1 members found this post helpful.
Old 04-26-2013, 05:09 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
finger has matched two users based on their second name (Machova)

From the finger man page:

Code:
User is usually a login name; however, matching will also be done on the users' real names, unless the -m option is supplied.  All name matching performed by finger is case insensitive.
So finger is reporting what you asked it for.
 
1 members found this post helpful.
Old 04-26-2013, 09:58 AM   #4
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Original Poster
Rep: Reputation: 1
Thanks a lot guys!
I got it, use -m option.

but still have one question as why the user ram which was not even created on system ,
when did finger ram was diplaying raju loginname
 
  


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] "su -i user1" not working manalisharmabe Solaris / OpenSolaris 5 04-26-2013 10:15 AM
Redirect ~user1 to ~user2 JRobertBuchanan Linux - Server 1 08-26-2012 02:56 PM
Access remotely as user1 and execute command as user2 archieval Programming 3 07-18-2012 06:41 AM
Kinit user1 to authenticate for ssh user2 MikeyCarter Linux - Software 0 03-01-2011 11:48 AM
Postfix-Squirrelmail: Mail sent to user1@mydomain.com delivered to user2@mydomain.com tsouvalasi Linux - Server 4 02-26-2010 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:24 PM.

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