New Question

Jerry McAllister jerrymc at clunix.cl.msu.edu
Fri Jun 11 18:58:55 PDT 2004


> 
> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 



More information about the freebsd-questions mailing list