Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Mar 2002 22:24:42 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        "Megias Sanchez, Jose Manuel" <JMegias@caja-granada.es>
Cc:        questions@freebsd.org
Subject:   Re: Help with finger permission denied
Message-ID:  <20020304222442.I576@k7.mavetju.org>
In-Reply-To: <1A4723CDE42AD611B61200A0C9AA5F3729BB85@correoex.caja-granada.es>; from JMegias@caja-granada.es on Mon, Mar 04, 2002 at 12:12:35PM %2B0100
References:  <1A4723CDE42AD611B61200A0C9AA5F3729BB85@correoex.caja-granada.es>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 04, 2002 at 12:12:35PM +0100, Megias Sanchez, Jose Manuel wrote:
> 	Hello, the command finger fails with all entries in /etc/passwd.
> Here is the information:
> 
> 1.- Command:
> 	finger jose
> 
> 2.- Output of the command:
> 	finger: Permission denied
> 
> 3.- Permissions on the finger binary:
> 	-r-xr-xr-x  1 root  wheel  - 18832 Feb 20 07:51 /usr/bin/finger
> 
> 4.- Permissions on the jose directory:
> 	drwxr-xr-x  2 jose  jose  512 Oct 29 13:30 /home/jose
> 
> 5.- Execution of the command:
> 	The command is executed by root user.
> 
> 6.- FreeBSD version:
> 	4.5 stable
> 
> 7.- In another PC running the same FreeBSD version the command is running
> ok:
> 	tijeras# finger jose
> 	Login: jmg                              Name: Jose Martinez Garcia
> 	Directory: /home/jmg                    Shell: /bin/sh
> 	Last login Mon Jan 14 13:08 (CET) on ttyp2 from jmg
> 	Mail last read Fri Mar  1 11:42 2002 (CET)
> 	No Plan.
> 
> 	Login: jose                             Name: Jose Manuel Megias
> Sanchez
> 	Directory: /home/jose                   Shell: /bin/sh
> 	Never logged in.
> 	No Mail.
> 	No Plan.

If you ktrace finger, you'll see it opens a couple of files:
/etc/group
/etc/finger.conf
/etc/pwd.db
etc

Please run "ktrace finger jose" and then "kdump". I wouldn't mind
examining the output of it. Please do this off the list as it might
be big.

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020304222442.I576>