Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2004 21:58:31 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        lwellis@mindspring.com (LW Ellis)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: New Question
Message-ID:  <200406120158.i5C1wXx24958@clunix.cl.msu.edu>
In-Reply-To: <004f01c4501c$6481c8b0$0200a8c0@LLAPTOP> from "LW Ellis" at Jun 11, 2004 07:27:14 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> The depth of my unix ignorance is showing...
> I kept getting a glitch, probably from my bad install attempt.
> I wiped my HD and re-installed FreeBSD with what I have learned.
> I have configured my xserver and it seems to be working ok.
> I read the the FreeBSD Handbook and found little about adding users or
> groups.
> 1) Do I add a group before a user?

Yes.   
Probably to the appropriate group before you add a user whose primary 
group will be that one.

You can, but you do not need to make a separate group for each user.  
You may want to use the group ID to make categories of users who can
work together, for example.  

You can create a group just by editing the /etc/group file.
Copy one of the existing group lines and edit it with a
different name and number.  You can use regular vi(1) for editing
the group file.

Don't use any numbers below 100, and I suggest starting at
with 200 or even 1000 as a good round number.   Give you some
room to play after you get big ideas about some project - and you
are sure to do so if you stick around long enough.

> 2) Other than sysinstall to add a user, is there anything else I need to do
> to configure a regular (notsuperuser)
> (Keeping in mind to copy .xsession and .xinitrc to that user's dir.)

There are various utilities to add users.  adduser(8) is probably the
best known.   Or you can just use vipw to edit the /etc/passwd and
/etc/master.passwd files directly and then create the correct home
directory and such by hand if you really want to get the feel of UNIX.
Do not edit either /etc/passwd or /etc/master.passwd with any other
editing tool.  vipw makes sure locks are handled and that the 
database is properly updated.

Also, as with groups, do not use any UID numbers below 100
and starting at at least 200 or 1000 is a good idea.
UIDs and GIDs below 100 are reserved for various standard usages.

////jerry

> 
> Thanx in advance!
> 
> Later,
> Leon
> A fanatic is one who can't change his mind and won't change the subject.
> Sir Winston Churchill
> 
> _______________________________________________
> 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"
> 



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