From owner-freebsd-questions Sun Jan 29 00:05:03 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id AAA17768 for questions-outgoing; Sun, 29 Jan 1995 00:05:03 -0800 Received: from lirmm.lirmm.fr (lirmm.lirmm.fr [193.49.104.10]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id AAA17758 for ; Sun, 29 Jan 1995 00:05:01 -0800 Received: from lirmm.fr (baobab.lirmm.fr [193.49.106.14]) by lirmm.lirmm.fr (8.6.9/8.6.4) with ESMTP id JAA01980; Sun, 29 Jan 1995 09:04:39 +0100 Message-Id: <199501290804.JAA01980@lirmm.lirmm.fr> To: jerryk@indy.net (Jerry Kelley) cc: questions@FreeBSD.org Subject: Re: a few new-user questions In-reply-to: Your message of "Sat, 28 Jan 1995 22:33:25 EST." <199501290333.AA07747@IndyNet.indy.net> Date: Sun, 29 Jan 1995 09:04:33 +0100 From: "Philippe Charnier" Sender: questions-owner@FreeBSD.org Precedence: bulk Salut, In the message a few new-user questions, jerryk@indy.net (Jerry Kelley) wrote : > >As a FreeBSD rookie, I've got a few questions: > >1) I created an account for myself at the end of the install. It asked for >a group and I gave it the name of a new group. If I log in under that >account ('jerry'), I can't 'su'. It says that I don't belong to a group >than can 'su'. add jerry in the group ``wheel'' in /etc/group (jerry can be in multiple groups) e.g wheel:*:0:root,jerry > I edited /etc/passwd and changed the group for 'jerry' to >wheel (which is 0). This didn't change a thing. > Noooooooooooooooo! If you want to edit passwd file, you MUST use vipw command vipw == vi + update passwords database >How can I get modify my account so I can 'su'? I am currently having to >login as root to do any real work on the system. see above > >2) How can I add or remove users and groups? I tried the 'adduser' command >but there isn't an executable under that name (at least not in the path). >Is it safe to just edit /etc/passwd and /etc/group? > $ vi /etc/group $ vipw -------- -------- Philippe Charnier charnier@lirmm.fr LIRMM, 161 rue Ada, 34392 Montpellier cedex 5 -- France ------------------------------------------------------------------------