From owner-freebsd-questions Mon Jul 23 5:56:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by hub.freebsd.org (Postfix) with ESMTP id 8A60D37B405 for ; Mon, 23 Jul 2001 05:55:59 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailg.telia.com (8.11.2/8.11.0) with ESMTP id f6NCtwc25388 for ; Mon, 23 Jul 2001 14:55:58 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id OAA13262 for ; Mon, 23 Jul 2001 14:55:57 +0200 (CEST) Received: (qmail 49881 invoked by uid 1001); 23 Jul 2001 12:55:08 -0000 Date: Mon, 23 Jul 2001 14:55:08 +0200 From: Erik Trulsson To: Andreas Pauley Cc: questions@FreeBSD.ORG Subject: Re: usermod equivalent? Message-ID: <20010723145507.A49413@student.uu.se> Mail-Followup-To: Andreas Pauley , questions@FreeBSD.ORG References: <3B5C18AB.9BE2CF9C@qbcon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3B5C18AB.9BE2CF9C@qbcon.com> User-Agent: Mutt/1.3.19i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jul 23, 2001 at 02:29:31PM +0200, Andreas Pauley wrote: > Hi, > > I just installed FreeBSD 4.3 > Now I need to add myself to the "wheel" group in order to be able to su > to root. > (I'm assuming it's "wheel" because that's what it is in NetBSD and > OpenBSD). > > There doesn't seem to be a usermod (or useradd, userdel for that > matter), and /stand/sysinstall only allows you to add new users. > > Do I need to install an additional package, or should I just vi my > /etc/group? > > And how do I delete a user without "userdel -r"? > > Another thing: I see the encrypted password is stored in /etc/passwd. > How do I enable shadow passwords? > (Does this have anything to do with my security level?) The commands for adding and removing users are adduser(8) and rmuser(8) To change what groups you are in you can just edit /etc/group directly. Passwords (encrypted or not) are not supposed to be in /etc/passwd. They are supposed to be in /etc/master.passwd See passwd(5) for more info. To modify this file please use vipw(8) which will call $EDITOR to let you modify it and then rebuild the necessary files. (Doing a 'man -k user' should have let you find out about adduser/rmuser at least and then you would have found references to the manpages for the password files. The manpages do contain a lot of information.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message