[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/passwd doesnt contain all users



On Tue, Dec 24, 2002 at 04:23:10PM +1100, Brian May wrote:

> On Mon, Dec 23, 2002 at 02:08:40PM -0500, Matt Zimmerman wrote:
> > Yes, that makes sense.  Though now that I think about it, there is really
> > very little reason to check for the existence of a user at all.  Most
> > packages should be using adduser, which will do the right thing if the user
> > already exists.
> 
> adduser, at least the woody version, is incredibly verbose
> if the user already exists.

mizar:[~] getent passwd cricket
cricket:x:101:103::/var/lib/cricket:/bin/false
mizar:[~] sudo         adduser --quiet --system --group --disabled-password \
>             --home /var/lib/cricket \
>             cricket
Password:
mizar:[~] 

-- 
 - mdz



Reply to: