Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 1995 09:04:33 +0100
From:      "Philippe Charnier" <charnier@lirmm.fr>
To:        jerryk@indy.net (Jerry Kelley)
Cc:        questions@FreeBSD.org
Subject:   Re: a few new-user questions 
Message-ID:  <199501290804.JAA01980@lirmm.lirmm.fr>
In-Reply-To: Your message of "Sat, 28 Jan 1995 22:33:25 EST." <199501290333.AA07747@IndyNet.indy.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
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
------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199501290804.JAA01980>