Date: Thu, 9 Mar 2000 23:31:52 -0800 (PST) From: Kris Kennaway <kris@hub.freebsd.org> To: Paul Richards <paul@originative.co.uk> Cc: current@freebsd.org Subject: Re: The pw command Message-ID: <Pine.BSF.4.21.0003092328520.62111-100000@hub.freebsd.org> In-Reply-To: <38C85A1D.F7A21141@originative.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Mar 2000, Paul Richards wrote:
> Non-root users can use the pw command to get information from the
> master.passwd file e.g.
>
> ps showuser paul
> paul:*:1000:1000::0:0:& Richards:/home/paul:/usr/local/bin/bash
% pw showuser kkenn
kkenn:*:1000:0::0:0:Kris Kennaway:/home/kkenn:/usr/local/bin/tcsh
% grep kkenn /etc/passwd
kkenn:*:1000:0::0:0:Kris Kennaway:/home/kkenn:/usr/local/bin/tcsh
% ls -l /usr/bin/pw
-r-xr-xr-x 1 root wheel 53180 Mar 4 00:49 /usr/sbin/pw*
In other words, pw(8) runs with no special privileges and can only read
what the user can normally read.
----
In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe <forsythe@alum.mit.edu>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003092328520.62111-100000>
