From owner-freebsd-questions@FreeBSD.ORG Tue Apr 8 05:57:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 720A2106564A for ; Tue, 8 Apr 2008 05:57:02 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.freebsd.org (Postfix) with ESMTP id D966D8FC1C for ; Tue, 8 Apr 2008 05:57:01 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from [192.168.0.1] (athedsl-279104.home.otenet.gr [85.73.137.222]) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id m385uxc4031713; Tue, 8 Apr 2008 08:57:00 +0300 Message-ID: <47FB093E.6050700@otenet.gr> Date: Tue, 08 Apr 2008 08:57:18 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Ruel Luchavez References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Delete the Users X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2008 05:57:02 -0000 Ruel Luchavez wrote: > Hi.. > I could log-in as a root in the data server of my friend, he give me a task > to delete some > users that he added in the server few months ago. > Unfortunately, I've tried reading in other blogs but none of them is > correct, there are some > but at the end its not what i want. > I know how to add users using command "adduser' but i cant trace after I add > user where should > be its directory?where could i find the list of users in the server? what > would be the command to delete > the user? > > I really need your HELP..Thanks! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > You can get the info on users simply by reading the /etc/passwd file. It will show you usernames, login shells and home directories. Usually, (although not strictly necessary) human users start from a uid of 1000 and up. Uids below 100 are mostly daemons. Deleting a user is as simple as: rmuser username This will also delete home directories, mail spools and so on. There are a lot more options if you wish, provided by the pw command. Try man pw